You are here

public function DefaultsSectionStorage::getLayoutBuilderUrl in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\DefaultsSectionStorage::getLayoutBuilderUrl()
  2. 9 core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\DefaultsSectionStorage::getLayoutBuilderUrl()

File

core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php, line 125

Class

DefaultsSectionStorage
Defines the 'defaults' section storage type.

Namespace

Drupal\layout_builder\Plugin\SectionStorage

Code

public function getLayoutBuilderUrl($rel = 'view') {
  return Url::fromRoute("layout_builder.{$this->getStorageType()}.{$this->getDisplay()->getTargetEntityTypeId()}.{$rel}", $this
    ->getRouteParameters());
}