Issue #3455513 by xjm, e0ipso: "Single-Directory Components" needs to be hyphenated because of English grammar and content style rules

merge-requests/5698/head^2
nod_ 2024-06-20 23:55:31 +02:00
parent 901d6d8aff
commit 1a487f3b7c
No known key found for this signature in database
GPG Key ID: 76624892606FA197
3 changed files with 6 additions and 6 deletions

View File

@ -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.

View File

@ -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) {

View File

@ -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