Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / layout_builder / src / SectionStorageInterface.php
index e7fbb086b89da585cfde215c14e84d7ef468491c..90ce9072fdddeaaf6ef1133415dd1bd356a3601d 100644 (file)
@@ -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.