SectionStorageLocalTaskProviderInterface.php

Same filename in other branches
  1. 9 core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageLocalTaskProviderInterface.php
  2. 8.9.x core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageLocalTaskProviderInterface.php
  3. 10 core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageLocalTaskProviderInterface.php

Namespace

Drupal\layout_builder\Plugin\SectionStorage

File

core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageLocalTaskProviderInterface.php

View source
<?php

namespace Drupal\layout_builder\Plugin\SectionStorage;


/**
 * Allows section storage plugins to provide local tasks.
 *
 * @see \Drupal\layout_builder\Plugin\Derivative\LayoutBuilderLocalTaskDeriver
 * @see \Drupal\layout_builder\SectionStorageInterface
 */
interface SectionStorageLocalTaskProviderInterface {
    
    /**
     * Provides the local tasks dynamically for Layout Builder plugins.
     *
     * @param mixed $base_plugin_definition
     *   The definition of the base plugin.
     *
     * @return array
     *   An array of full derivative definitions keyed on derivative ID.
     */
    public function buildLocalTasks($base_plugin_definition);

}

Interfaces

Title Deprecated Summary
SectionStorageLocalTaskProviderInterface Allows section storage plugins to provide local tasks.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.