Pull merge.
[yaffs-website] / web / core / modules / layout_builder / src / Plugin / SectionStorage / SectionStorageLocalTaskProviderInterface.php
1 <?php
2
3 namespace Drupal\layout_builder\Plugin\SectionStorage;
4
5 /**
6  * Allows section storage plugins to provide local tasks.
7  *
8  * @see \Drupal\layout_builder\Plugin\Derivative\LayoutBuilderLocalTaskDeriver
9  * @see \Drupal\layout_builder\SectionStorageInterface
10  *
11  * @internal
12  *   Layout Builder is currently experimental and should only be leveraged by
13  *   experimental modules and development releases of contributed modules.
14  *   See https://www.drupal.org/core/experimental for more information.
15  */
16 interface SectionStorageLocalTaskProviderInterface {
17
18   /**
19    * Provides the local tasks dynamically for Layout Builder plugins.
20    *
21    * @param mixed $base_plugin_definition
22    *   The definition of the base plugin.
23    *
24    * @return array
25    *   An array of full derivative definitions keyed on derivative ID.
26    */
27   public function buildLocalTasks($base_plugin_definition);
28
29 }