public function BlockPluginUI::getDerivativeDefinitions

Implements \Drupal\Component\Plugin\Derivative\DerivativeInterface::getDerivativeDefinitions().

Overrides DerivativeInterface::getDerivativeDefinitions

1 call to BlockPluginUI::getDerivativeDefinitions()

File

drupal/core/modules/block/lib/Drupal/block/Plugin/Derivative/BlockPluginUI.php, line 43

Class

BlockPluginUI
Provides block plugin UI plugin definitions for all themes.

Namespace

Drupal\block\Plugin\Derivative

Code

public function getDerivativeDefinitions(array $base_plugin_definition) {

  // Provide a derivative of the plugin UI for each theme.
  foreach (list_themes() as $key => $theme) {
    $this->derivatives[$key] = $base_plugin_definition;
  }
  return $this->derivatives;
}