diff --git a/core/modules/layout_builder/src/LayoutSectionBuilder.php b/core/modules/layout_builder/src/LayoutSectionBuilder.php index 36c9fe296e..63fba16d27 100644 --- a/core/modules/layout_builder/src/LayoutSectionBuilder.php +++ b/core/modules/layout_builder/src/LayoutSectionBuilder.php @@ -15,6 +15,8 @@ * Builds the UI for layout sections. * * @internal + * @todo Am I internal because I'm experimental or because I will be + * internal even when the module is stable? */ class LayoutSectionBuilder { diff --git a/core/modules/layout_builder/src/Section.php b/core/modules/layout_builder/src/Section.php index 1a2360dff6..43626ecda5 100644 --- a/core/modules/layout_builder/src/Section.php +++ b/core/modules/layout_builder/src/Section.php @@ -6,14 +6,20 @@ * Provides a domain object for layout sections. * * A section consists of three parts: - * - A layout plugin ID - * - An array of settings for the layout plugin - * - An array of components that can be rendered. + * - The layout plugin ID for the layout applied to the section (for example, + * 'onecol'). + * - An array of settings for the layout plugin. + * - An array of components (e.g. blocks) that can be rendered in the section. * * @internal * Layout Builder is currently experimental and should only be leveraged by * experimental modules and development releases of contributed modules. * See https://www.drupal.org/core/experimental for more information. + * + * @see \Drupal\Core\Layout\LayoutDefinition + * + * @todo Determine whether an interface will be provided for this in + * https://www.drupal.org/project/drupal/issues/nid-here. */ class Section { diff --git a/core/modules/layout_builder/src/SectionComponent.php b/core/modules/layout_builder/src/SectionComponent.php index 10c333f41c..4f8d9b26b6 100644 --- a/core/modules/layout_builder/src/SectionComponent.php +++ b/core/modules/layout_builder/src/SectionComponent.php @@ -10,13 +10,24 @@ /** * Provides a value object for a section component. * - * A component represents the smallest part of a layout. Components wrap a - * renderable plugin, currently using \Drupal\Core\Block\BlockPluginInterface. + * A component represents the smallest part of a layout (for example, a block). + * Components wrap a renderable plugin, currently using + * \Drupal\Core\Block\BlockPluginInterface, and contain the layout region + * within the section layout where the component will be rendered. * * @internal * Layout Builder is currently experimental and should only be leveraged by * experimental modules and development releases of contributed modules. * See https://www.drupal.org/core/experimental for more information. + * + * @see \Drupal\Core\Layout\LayoutDefinition + * @see \Drupal\layout_builder\Section + * @see \Drupal\layout_builder\SectionStorageInterface + * + * @todo Determine whether to retain the name 'component' in + * https://www.drupal.org/project/drupal/issues/2929783. + * @todo Determine whether an interface will be provided for this in + * https://www.drupal.org/project/drupal/issues/nid-here. */ class SectionComponent { @@ -111,7 +122,7 @@ public function toRenderArray() { } /** - * Gets any arbitrary property. + * Gets any arbitrary property for the component. * * @param string $property * The property to retrieve. @@ -130,7 +141,7 @@ public function get($property) { } /** - * Sets a value to an arbitrary property. + * Sets a value to an arbitrary property for the component. * * @param string $property * The property to use for the value. diff --git a/core/modules/layout_builder/src/SectionStorageInterface.php b/core/modules/layout_builder/src/SectionStorageInterface.php index b7acab7e97..c4da487eba 100644 --- a/core/modules/layout_builder/src/SectionStorageInterface.php +++ b/core/modules/layout_builder/src/SectionStorageInterface.php @@ -9,6 +9,8 @@ * Layout Builder is currently experimental and should only be leveraged by * experimental modules and development releases of contributed modules. * See https://www.drupal.org/core/experimental for more information. + * + * @see \Drupal\layout_builder\Section */ interface SectionStorageInterface extends \Countable {