README.txt
Same filename in this branch
- 11.x sites/README.txt
- 11.x composer/Template/README.txt
- 11.x composer/Metapackage/README.txt
- 11.x composer/Plugin/VendorHardening/README.txt
- 11.x profiles/README.txt
- 11.x themes/README.txt
- 11.x modules/README.txt
- 11.x core/profiles/demo_umami/themes/umami/README.txt
- 11.x core/profiles/demo_umami/themes/umami/images/classy/README.txt
- 11.x core/profiles/demo_umami/themes/umami/css/classy/README.txt
- 11.x core/profiles/demo_umami/themes/umami/js/classy/README.txt
- 11.x core/profiles/demo_umami/themes/umami/templates/classy/README.txt
- 11.x core/themes/stable9/README.txt
- 11.x core/themes/claro/images/classy/README.txt
- 11.x core/themes/claro/css/classy/README.txt
- 11.x core/themes/claro/js/classy/README.txt
- 11.x core/themes/claro/templates/classy/README.txt
- 11.x core/themes/stark/README.txt
- 11.x core/modules/system/tests/src/Functional/UpdateSystem/README.txt
- 11.x core/modules/system/tests/src/Functional/Update/README.txt
- 11.x core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/README.txt
- 11.x core/tests/fixtures/files/README.txt
- 11.x core/assets/scaffold/README.txt
- 11.x core/assets/vendor/tabbable/README.txt
- 11.x core/lib/Drupal/Core/README.txt
- 11.x core/lib/Drupal/Component/Render/README.txt
- 11.x core/lib/Drupal/Component/Assertion/README.txt
- 11.x core/lib/Drupal/Component/Discovery/README.txt
- 11.x core/lib/Drupal/Component/FileSecurity/README.txt
- 11.x core/lib/Drupal/Component/FileCache/README.txt
- 11.x core/lib/Drupal/Component/Utility/README.txt
- 11.x core/lib/Drupal/Component/README.txt
- 11.x core/lib/Drupal/Component/Graph/README.txt
- 11.x core/lib/Drupal/Component/DependencyInjection/README.txt
- 11.x core/lib/Drupal/Component/FrontMatter/README.txt
- 11.x core/lib/Drupal/Component/Version/README.txt
- 11.x core/lib/Drupal/Component/Serialization/README.txt
- 11.x core/lib/Drupal/Component/ClassFinder/README.txt
- 11.x core/lib/Drupal/Component/ProxyBuilder/README.txt
- 11.x core/lib/Drupal/Component/EventDispatcher/README.txt
- 11.x core/lib/Drupal/Component/Diff/README.txt
- 11.x core/lib/Drupal/Component/FileSystem/README.txt
- 11.x core/lib/Drupal/Component/Gettext/README.txt
- 11.x core/lib/Drupal/Component/PhpStorage/README.txt
- 11.x core/lib/Drupal/Component/Datetime/README.txt
- 11.x core/lib/Drupal/Component/Transliteration/README.txt
- 11.x core/lib/Drupal/Component/Annotation/README.txt
- 11.x core/lib/Drupal/Component/HttpFoundation/README.txt
- 11.x core/lib/Drupal/Component/Uuid/README.txt
- 11.x core/lib/Drupal/Component/Plugin/README.txt
- 11.x core/lib/README.txt
Same filename in other branches
- 7.x sites/README.txt
- 7.x sites/all/themes/README.txt
- 7.x sites/all/modules/README.txt
- 7.x sites/all/libraries/README.txt
- 7.x profiles/README.txt
- 7.x profiles/standard/translations/README.txt
- 7.x profiles/minimal/translations/README.txt
- 7.x README.txt
- 7.x themes/README.txt
- 7.x themes/stark/README.txt
- 7.x modules/README.txt
- 7.x modules/simpletest/files/README.txt
- 9 sites/README.txt
- 9 composer/Template/README.txt
- 9 composer/Metapackage/README.txt
- 9 composer/Plugin/VendorHardening/README.txt
- 9 profiles/README.txt
- 9 themes/README.txt
- 9 modules/README.txt
- 9 core/profiles/demo_umami/themes/umami/README.txt
- 9 core/profiles/demo_umami/themes/umami/images/classy/README.txt
- 9 core/profiles/demo_umami/themes/umami/css/classy/README.txt
- 9 core/profiles/demo_umami/themes/umami/js/classy/README.txt
- 9 core/profiles/demo_umami/themes/umami/templates/classy/README.txt
- 9 core/themes/stable9/README.txt
- 9 core/themes/stable9/images/README.txt
- 9 core/themes/seven/README.txt
- 9 core/themes/seven/images/classy/README.txt
- 9 core/themes/seven/css/classy/README.txt
- 9 core/themes/seven/js/classy/README.txt
- 9 core/themes/seven/templates/classy/README.txt
- 9 core/themes/claro/images/classy/README.txt
- 9 core/themes/claro/css/classy/README.txt
- 9 core/themes/claro/js/classy/README.txt
- 9 core/themes/claro/templates/classy/README.txt
- 9 core/themes/stark/README.txt
- 9 core/themes/bartik/README.txt
- 9 core/themes/bartik/images/classy/README.txt
- 9 core/themes/bartik/css/classy/README.txt
- 9 core/themes/bartik/js/classy/README.txt
- 9 core/themes/bartik/templates/classy/README.txt
- 9 core/themes/stable/README.txt
- 9 core/themes/classy/README.txt
- 9 core/modules/system/tests/src/Functional/UpdateSystem/README.txt
- 9 core/modules/system/tests/src/Functional/Update/README.txt
- 9 core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/README.txt
- 9 core/tests/fixtures/files/README.txt
- 9 core/assets/scaffold/README.txt
- 9 core/assets/vendor/tabbable/README.txt
- 9 core/lib/Drupal/Core/README.txt
- 9 core/lib/Drupal/Component/Render/README.txt
- 9 core/lib/Drupal/Component/Assertion/README.txt
- 9 core/lib/Drupal/Component/Discovery/README.txt
- 9 core/lib/Drupal/Component/FileSecurity/README.txt
- 9 core/lib/Drupal/Component/FileCache/README.txt
- 9 core/lib/Drupal/Component/Utility/README.txt
- 9 core/lib/Drupal/Component/README.txt
- 9 core/lib/Drupal/Component/Graph/README.txt
- 9 core/lib/Drupal/Component/DependencyInjection/README.txt
- 9 core/lib/Drupal/Component/FrontMatter/README.txt
- 9 core/lib/Drupal/Component/Version/README.txt
- 9 core/lib/Drupal/Component/Serialization/README.txt
- 9 core/lib/Drupal/Component/ClassFinder/README.txt
- 9 core/lib/Drupal/Component/ProxyBuilder/README.txt
- 9 core/lib/Drupal/Component/EventDispatcher/README.txt
- 9 core/lib/Drupal/Component/Diff/README.txt
- 9 core/lib/Drupal/Component/FileSystem/README.txt
- 9 core/lib/Drupal/Component/Gettext/README.txt
- 9 core/lib/Drupal/Component/Bridge/README.txt
- 9 core/lib/Drupal/Component/PhpStorage/README.txt
- 9 core/lib/Drupal/Component/Datetime/README.txt
- 9 core/lib/Drupal/Component/Transliteration/README.txt
- 9 core/lib/Drupal/Component/Annotation/README.txt
- 9 core/lib/Drupal/Component/HttpFoundation/README.txt
- 9 core/lib/Drupal/Component/Uuid/README.txt
- 9 core/lib/Drupal/Component/Plugin/README.txt
- 9 core/lib/README.txt
- 8.9.x sites/README.txt
- 8.9.x composer/Template/README.txt
- 8.9.x composer/Metapackage/README.txt
- 8.9.x composer/Plugin/VendorHardening/README.txt
- 8.9.x profiles/README.txt
- 8.9.x README.txt
- 8.9.x themes/README.txt
- 8.9.x modules/README.txt
- 8.9.x core/profiles/demo_umami/themes/umami/README.txt
- 8.9.x core/profiles/demo_umami/themes/umami/images/classy/README.txt
- 8.9.x core/profiles/demo_umami/themes/umami/css/classy/README.txt
- 8.9.x core/profiles/demo_umami/themes/umami/js/classy/README.txt
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/README.txt
- 8.9.x core/themes/seven/README.txt
- 8.9.x core/themes/seven/images/classy/README.txt
- 8.9.x core/themes/seven/css/classy/README.txt
- 8.9.x core/themes/seven/js/classy/README.txt
- 8.9.x core/themes/seven/templates/classy/README.txt
- 8.9.x core/themes/claro/images/classy/README.txt
- 8.9.x core/themes/claro/css/classy/README.txt
- 8.9.x core/themes/claro/js/classy/README.txt
- 8.9.x core/themes/claro/templates/classy/README.txt
- 8.9.x core/themes/stark/README.txt
- 8.9.x core/themes/bartik/README.txt
- 8.9.x core/themes/bartik/images/classy/README.txt
- 8.9.x core/themes/bartik/css/classy/README.txt
- 8.9.x core/themes/bartik/js/classy/README.txt
- 8.9.x core/themes/bartik/templates/classy/README.txt
- 8.9.x core/themes/stable/README.txt
- 8.9.x core/themes/classy/README.txt
- 8.9.x core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/README.txt
- 8.9.x core/tests/fixtures/files/README.txt
- 8.9.x core/assets/scaffold/README.txt
- 8.9.x core/lib/Drupal/Core/README.txt
- 8.9.x core/lib/Drupal/Component/Render/README.txt
- 8.9.x core/lib/Drupal/Component/Assertion/README.txt
- 8.9.x core/lib/Drupal/Component/Discovery/README.txt
- 8.9.x core/lib/Drupal/Component/FileSecurity/README.txt
- 8.9.x core/lib/Drupal/Component/FileCache/README.txt
- 8.9.x core/lib/Drupal/Component/Utility/README.txt
- 8.9.x core/lib/Drupal/Component/README.txt
- 8.9.x core/lib/Drupal/Component/Graph/README.txt
- 8.9.x core/lib/Drupal/Component/DependencyInjection/README.txt
- 8.9.x core/lib/Drupal/Component/Version/README.txt
- 8.9.x core/lib/Drupal/Component/Serialization/README.txt
- 8.9.x core/lib/Drupal/Component/ClassFinder/README.txt
- 8.9.x core/lib/Drupal/Component/ProxyBuilder/README.txt
- 8.9.x core/lib/Drupal/Component/EventDispatcher/README.txt
- 8.9.x core/lib/Drupal/Component/Diff/README.txt
- 8.9.x core/lib/Drupal/Component/FileSystem/README.txt
- 8.9.x core/lib/Drupal/Component/Gettext/README.txt
- 8.9.x core/lib/Drupal/Component/Bridge/README.txt
- 8.9.x core/lib/Drupal/Component/PhpStorage/README.txt
- 8.9.x core/lib/Drupal/Component/Datetime/README.txt
- 8.9.x core/lib/Drupal/Component/Transliteration/README.txt
- 8.9.x core/lib/Drupal/Component/Annotation/README.txt
- 8.9.x core/lib/Drupal/Component/HttpFoundation/README.txt
- 8.9.x core/lib/Drupal/Component/Uuid/README.txt
- 8.9.x core/lib/Drupal/Component/Plugin/README.txt
- 8.9.x core/lib/README.txt
- 10 sites/README.txt
- 10 composer/Template/README.txt
- 10 composer/Metapackage/README.txt
- 10 composer/Plugin/VendorHardening/README.txt
- 10 profiles/README.txt
- 10 themes/README.txt
- 10 modules/README.txt
- 10 core/profiles/demo_umami/themes/umami/README.txt
- 10 core/profiles/demo_umami/themes/umami/images/classy/README.txt
- 10 core/profiles/demo_umami/themes/umami/css/classy/README.txt
- 10 core/profiles/demo_umami/themes/umami/js/classy/README.txt
- 10 core/profiles/demo_umami/themes/umami/templates/classy/README.txt
- 10 core/themes/stable9/README.txt
- 10 core/themes/claro/images/classy/README.txt
- 10 core/themes/claro/css/classy/README.txt
- 10 core/themes/claro/js/classy/README.txt
- 10 core/themes/claro/templates/classy/README.txt
- 10 core/themes/stark/README.txt
- 10 core/modules/sdc/README.txt
- 10 core/modules/system/tests/src/Functional/UpdateSystem/README.txt
- 10 core/modules/system/tests/src/Functional/Update/README.txt
- 10 core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/fruit/README.txt
- 10 core/tests/fixtures/files/README.txt
- 10 core/assets/scaffold/README.txt
- 10 core/assets/vendor/tabbable/README.txt
- 10 core/lib/Drupal/Core/README.txt
- 10 core/lib/Drupal/Component/Render/README.txt
- 10 core/lib/Drupal/Component/Assertion/README.txt
- 10 core/lib/Drupal/Component/Discovery/README.txt
- 10 core/lib/Drupal/Component/FileSecurity/README.txt
- 10 core/lib/Drupal/Component/FileCache/README.txt
- 10 core/lib/Drupal/Component/Utility/README.txt
- 10 core/lib/Drupal/Component/README.txt
- 10 core/lib/Drupal/Component/Graph/README.txt
- 10 core/lib/Drupal/Component/DependencyInjection/README.txt
- 10 core/lib/Drupal/Component/FrontMatter/README.txt
- 10 core/lib/Drupal/Component/Version/README.txt
- 10 core/lib/Drupal/Component/Serialization/README.txt
- 10 core/lib/Drupal/Component/ClassFinder/README.txt
- 10 core/lib/Drupal/Component/ProxyBuilder/README.txt
- 10 core/lib/Drupal/Component/EventDispatcher/README.txt
- 10 core/lib/Drupal/Component/Diff/README.txt
- 10 core/lib/Drupal/Component/FileSystem/README.txt
- 10 core/lib/Drupal/Component/Gettext/README.txt
- 10 core/lib/Drupal/Component/PhpStorage/README.txt
- 10 core/lib/Drupal/Component/Datetime/README.txt
- 10 core/lib/Drupal/Component/Transliteration/README.txt
- 10 core/lib/Drupal/Component/Annotation/README.txt
- 10 core/lib/Drupal/Component/HttpFoundation/README.txt
- 10 core/lib/Drupal/Component/Uuid/README.txt
- 10 core/lib/Drupal/Component/Plugin/README.txt
- 10 core/lib/README.txt
The API of Single Directory Components includes: - The component plugin manager (the service with name plugin.manager.sdc). This service will be needed by modules that need to find and instantiate components. - The exceptions. Code using Single Directory Components can rely, and extend, the exceptions provided by the experimental module. - The folder structure of a component and the naming conventions of the files in it. - The structure of the component metadata (the my-component.component.yml). Note that the metadata of the component is described, and optionally validated, by the schema in metadata.schema.json (this file is for internal validation and not part of the API). - The render element and its class \Drupal\sdc\Element\ComponentElement. - The naming convention for the ID when using Twig's include, embed, and extends. This naming convention is [module/theme]:[component machine name]. See the example below. {% embed 'my-theme:my-component' with { prop1: content.field_for_prop1 } %} {% block slot1 %} {{ content|without('field_for_prop1') }} {% endblock %} {% endembed %} This way of specifying the component for Twig's include, embed, and extends('my-theme:my-component' in the example) will not change, as it is considered an API.
File
-
core/
modules/ sdc/ README.txt
View source
- The API of Single Directory Components includes:
-
- - The component plugin manager (the service with name plugin.manager.sdc).
- This service will be needed by modules that need to find and instantiate
- components.
- - The exceptions. Code using Single Directory Components can rely, and extend,
- the exceptions provided by the experimental module.
- - The folder structure of a component and the naming conventions of the files
- in it.
- - The structure of the component metadata (the my-component.component.yml).
- Note that the metadata of the component is described, and optionally
- validated, by the schema in metadata.schema.json (this file is for internal validation and not part of the API).
- - The render element and its class \Drupal\sdc\Element\ComponentElement.
- - The naming convention for the ID when using Twig's include, embed, and
- extends. This naming convention is [module/theme]:[component machine name].
- See the example below.
-
- {% embed 'my-theme:my-component' with { prop1: content.field_for_prop1 } %}
- {% block slot1 %}
- {{ content|without('field_for_prop1') }}
- {% endblock %}
- {% endembed %}
-
- This way of specifying the component for Twig's include, embed, and
- extends('my-theme:my-component' in the example) will not change, as it is
- considered an API.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.