Loading core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php +3 −3 Original line number Diff line number Diff line Loading @@ -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() Loading Loading @@ -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. Loading core/lib/Drupal/Core/Render/Element/ComponentElement.php +2 −2 Original line number Diff line number Diff line Loading @@ -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. Loading Loading @@ -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) { Loading core/modules/sdc/sdc.info.yml +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 Loading Loading
core/lib/Drupal/Core/Asset/LibraryDiscoveryParser.php +3 −3 Original line number Diff line number Diff line Loading @@ -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() Loading Loading @@ -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. Loading
core/lib/Drupal/Core/Render/Element/ComponentElement.php +2 −2 Original line number Diff line number Diff line Loading @@ -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. Loading Loading @@ -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) { Loading
core/modules/sdc/sdc.info.yml +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 Loading