function LayoutBuilderController::title
Same name in other branches
- 9 core/modules/layout_builder/src/Controller/LayoutBuilderController.php \Drupal\layout_builder\Controller\LayoutBuilderController::title()
- 10 core/modules/layout_builder/src/Controller/LayoutBuilderController.php \Drupal\layout_builder\Controller\LayoutBuilderController::title()
- 11.x core/modules/layout_builder/src/Controller/LayoutBuilderController.php \Drupal\layout_builder\Controller\LayoutBuilderController::title()
Provides a title callback.
Parameters
\Drupal\layout_builder\SectionStorageInterface $section_storage: The section storage.
Return value
string The title for the layout page.
File
-
core/
modules/ layout_builder/ src/ Controller/ LayoutBuilderController.php, line 27
Class
- LayoutBuilderController
- Defines a controller to provide the Layout Builder admin UI.
Namespace
Drupal\layout_builder\ControllerCode
public function title(SectionStorageInterface $section_storage) {
return $this->t('Edit layout for %label', [
'%label' => $section_storage->label(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.