public function SystemMenuBlock::getDerivativeDefinition

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

Overrides DerivativeInterface::getDerivativeDefinition

File

drupal/core/modules/system/lib/Drupal/system/Plugin/Derivative/SystemMenuBlock.php, line 29
Contains \Drupal\system\Plugin\Derivative\SystemMenuBlock.

Class

SystemMenuBlock
Provides block plugin definitions for system menus.

Namespace

Drupal\system\Plugin\Derivative

Code

public function getDerivativeDefinition($derivative_id, array $base_plugin_definition) {
  if (!empty($this->derivatives) && !empty($this->derivatives[$derivative_id])) {
    return $this->derivatives[$derivative_id];
  }
  $this
    ->getDerivativeDefinitions($base_plugin_definition);
  return $this->derivatives[$derivative_id];
}