You are here

public function OverridesSectionStorage::getRedirectUrl in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage::getRedirectUrl()

Gets the URL used when redirecting away from the Layout Builder UI.

Return value

\Drupal\Core\Url The URL object.

Overrides SectionStorageInterface::getRedirectUrl

File

core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php, line 330

Class

OverridesSectionStorage
Defines the 'overrides' section storage type.

Namespace

Drupal\layout_builder\Plugin\SectionStorage

Code

public function getRedirectUrl() {
  return $this
    ->getEntity()
    ->toUrl('canonical');
}