X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flayout_builder%2Fsrc%2FSectionStorageInterface.php;h=90ce9072fdddeaaf6ef1133415dd1bd356a3601d;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=e7fbb086b89da585cfde215c14e84d7ef468491c;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/web/core/modules/layout_builder/src/SectionStorageInterface.php b/web/core/modules/layout_builder/src/SectionStorageInterface.php index e7fbb086b..90ce9072f 100644 --- a/web/core/modules/layout_builder/src/SectionStorageInterface.php +++ b/web/core/modules/layout_builder/src/SectionStorageInterface.php @@ -3,6 +3,7 @@ namespace Drupal\layout_builder; use Drupal\Component\Plugin\PluginInspectionInterface; +use Drupal\Core\Access\AccessibleInterface; use Symfony\Component\Routing\RouteCollection; /** @@ -13,7 +14,7 @@ use Symfony\Component\Routing\RouteCollection; * experimental modules and development releases of contributed modules. * See https://www.drupal.org/core/experimental for more information. */ -interface SectionStorageInterface extends SectionListInterface, PluginInspectionInterface { +interface SectionStorageInterface extends SectionListInterface, PluginInspectionInterface, AccessibleInterface { /** * Returns an identifier for this storage. @@ -88,10 +89,14 @@ interface SectionStorageInterface extends SectionListInterface, PluginInspection /** * Gets the URL used to display the Layout Builder UI. * + * @param string $rel + * (optional) The link relationship type, for example: 'view' or 'disable'. + * Defaults to 'view'. + * * @return \Drupal\Core\Url * The URL object. */ - public function getLayoutBuilderUrl(); + public function getLayoutBuilderUrl($rel = 'view'); /** * Configures the plugin based on route values.