You are here

public function PageManagerSectionStorage::getLayoutBuilderUrl in Page Manager 8.4

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

File

src/Plugin/SectionStorage/PageManagerSectionStorage.php, line 143

Class

PageManagerSectionStorage
Defines the 'page_manager' section storage type.

Namespace

Drupal\page_manager\Plugin\SectionStorage

Code

public function getLayoutBuilderUrl($rel = 'view') {
  return Url::fromRoute("layout_builder.page_manager.view", [
    'page_variant' => $this
      ->getPageVariant()
      ->id(),
  ]);
}