Issue #3455513 by xjm, e0ipso: "Single-Directory Components" needs to be hyphenated because of English grammar and content style rules
parent
901d6d8aff
commit
1a487f3b7c
|
@ -399,7 +399,7 @@ class LibraryDiscoveryParser {
|
|||
}
|
||||
}
|
||||
// Core also provides additional libraries that don't come from the YAML,
|
||||
// file nor the hook_library_info_build. They come from single directory
|
||||
// file nor the hook_library_info_build. They come from single-directory
|
||||
// component definitions.
|
||||
$additional_libraries = $extension === 'core'
|
||||
? $this->librariesForComponents()
|
||||
|
@ -474,10 +474,10 @@ class LibraryDiscoveryParser {
|
|||
}
|
||||
|
||||
/**
|
||||
* Builds the dynamic library definitions for single directory components.
|
||||
* Builds the dynamic library definitions for single-directory components.
|
||||
*
|
||||
* @return array
|
||||
* The core library definitions for Single Directory Components.
|
||||
* The core library definitions for Single-Directory Components.
|
||||
*/
|
||||
protected function librariesForComponents(): array {
|
||||
// Iterate over all the components to get the CSS and JS files.
|
||||
|
|
|
@ -8,7 +8,7 @@ use Drupal\Core\Security\DoTrustedCallbackTrait;
|
|||
use Drupal\Core\Render\Component\Exception\InvalidComponentDataException;
|
||||
|
||||
/**
|
||||
* Provides a Single Directory Component render element.
|
||||
* Provides a Single-Directory Component render element.
|
||||
*
|
||||
* Properties:
|
||||
* - #component: The machine name of the component.
|
||||
|
@ -100,7 +100,7 @@ class ComponentElement extends RenderElementBase {
|
|||
array $slots_alter_callbacks,
|
||||
array &$context,
|
||||
): string {
|
||||
$template = '{# This template was dynamically generated by single directory components #}' . PHP_EOL;
|
||||
$template = '{# This template was dynamically generated by single-directory components #}' . PHP_EOL;
|
||||
$template .= sprintf('{%% embed \'%s\' %%}', $id);
|
||||
$template .= PHP_EOL;
|
||||
foreach ($slots as $slot_name => $slot_value) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: Single Directory Components
|
||||
name: Single-Directory Components
|
||||
type: module
|
||||
description: 'Allows discovery and rendering of self-contained UI components.'
|
||||
version: VERSION
|
||||
|
|
Loading…
Reference in New Issue