You are here

public function Library::getRedirectUrl in Layout builder library 8

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

Return value

\Drupal\Core\Url The URL object.

Overrides SectionStorageInterface::getRedirectUrl

File

src/Plugin/SectionStorage/Library.php, line 155

Class

Library
Defines a class for library based layout storage.

Namespace

Drupal\layout_library\Plugin\SectionStorage

Code

public function getRedirectUrl() {
  return Url::fromRoute('entity.layout.collection');
}