function NavigationSectionStorage::getLayoutBuilderUrl
Same name and namespace in other branches
- 11.x core/modules/navigation/src/Plugin/SectionStorage/NavigationSectionStorage.php \Drupal\navigation\Plugin\SectionStorage\NavigationSectionStorage::getLayoutBuilderUrl()
Gets the URL used to display the Layout Builder UI.
Parameters
string $rel: (optional) The link relationship type, for example: 'view' or 'disable'. Defaults to 'view'.
Return value
\Drupal\Core\Url The URL object.
Overrides SectionStorageInterface::getLayoutBuilderUrl
1 call to NavigationSectionStorage::getLayoutBuilderUrl()
- NavigationSectionStorage::getRedirectUrl in core/
modules/ navigation/ src/ Plugin/ SectionStorage/ NavigationSectionStorage.php
File
-
core/
modules/ navigation/ src/ Plugin/ SectionStorage/ NavigationSectionStorage.php, line 175
Class
- NavigationSectionStorage
- Provides navigation section storage.
Namespace
Drupal\navigation\Plugin\SectionStorageCode
public function getLayoutBuilderUrl($rel = 'view') : Url {
return Url::fromRoute("layout_builder.{$this->getStorageType()}.{$rel}", [
'id' => $this->getStorageId(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.