Verified Commit acbd64f9 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3455513 by xjm, e0ipso: "Single-Directory Components" needs to be...

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

(cherry picked from commit 1a487f3b)
parent bc4cfe0e
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -403,7 +403,7 @@ protected function parseLibraryInfo($extension, $path) {
      }
    }
    // 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()
@@ -478,10 +478,10 @@ protected function applyLibrariesMovedOverrides(array $library, string $library_
  }

  /**
   * 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.
+2 −2
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
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 @@ private function generateComponentTemplate(
    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 −1
Original line number Diff line number Diff line
name: Single Directory Components
name: Single-Directory Components
type: module
description: 'Allows discovery and rendering of self-contained UI components.'
version: VERSION