Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\layout_builder; | 3 namespace Drupal\layout_builder; |
4 | 4 |
5 use Drupal\Component\Plugin\PluginInspectionInterface; | 5 use Drupal\Component\Plugin\PluginInspectionInterface; |
6 use Drupal\Core\Access\AccessibleInterface; | |
6 use Symfony\Component\Routing\RouteCollection; | 7 use Symfony\Component\Routing\RouteCollection; |
7 | 8 |
8 /** | 9 /** |
9 * Defines an interface for Section Storage type plugins. | 10 * Defines an interface for Section Storage type plugins. |
10 * | 11 * |
11 * @internal | 12 * @internal |
12 * Layout Builder is currently experimental and should only be leveraged by | 13 * Layout Builder is currently experimental and should only be leveraged by |
13 * experimental modules and development releases of contributed modules. | 14 * experimental modules and development releases of contributed modules. |
14 * See https://www.drupal.org/core/experimental for more information. | 15 * See https://www.drupal.org/core/experimental for more information. |
15 */ | 16 */ |
16 interface SectionStorageInterface extends SectionListInterface, PluginInspectionInterface { | 17 interface SectionStorageInterface extends SectionListInterface, PluginInspectionInterface, AccessibleInterface { |
17 | 18 |
18 /** | 19 /** |
19 * Returns an identifier for this storage. | 20 * Returns an identifier for this storage. |
20 * | 21 * |
21 * @return string | 22 * @return string |
86 public function getRedirectUrl(); | 87 public function getRedirectUrl(); |
87 | 88 |
88 /** | 89 /** |
89 * Gets the URL used to display the Layout Builder UI. | 90 * Gets the URL used to display the Layout Builder UI. |
90 * | 91 * |
92 * @param string $rel | |
93 * (optional) The link relationship type, for example: 'view' or 'disable'. | |
94 * Defaults to 'view'. | |
95 * | |
91 * @return \Drupal\Core\Url | 96 * @return \Drupal\Core\Url |
92 * The URL object. | 97 * The URL object. |
93 */ | 98 */ |
94 public function getLayoutBuilderUrl(); | 99 public function getLayoutBuilderUrl($rel = 'view'); |
95 | 100 |
96 /** | 101 /** |
97 * Configures the plugin based on route values. | 102 * Configures the plugin based on route values. |
98 * | 103 * |
99 * @param mixed $value | 104 * @param mixed $value |