diff core/modules/layout_builder/src/SectionStorageInterface.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children af1871eacc83
line wrap: on
line diff
--- a/core/modules/layout_builder/src/SectionStorageInterface.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/core/modules/layout_builder/src/SectionStorageInterface.php	Thu Feb 28 13:21:36 2019 +0000
@@ -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 @@
  *   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 @@
   /**
    * 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.