public function Layout::getDerivativeDefinition

Implements DerivativeInterface::getDerivativeDefinition().

Overrides DerivativeInterface::getDerivativeDefinition

File

drupal/core/modules/layout/lib/Drupal/layout/Plugin/Derivative/Layout.php, line 46
Definition of Drupal\layout\Plugin\Derivative\Layout.

Class

Layout
Layout plugin derivative definition.

Namespace

Drupal\layout\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];
}