You are here

public function Layout::getDerivativeDefinition in Layout 8

Implements DerivativeInterface::getDerivativeDefinition().

File

lib/Drupal/rlayout/Plugin/Derivative/Layout.php, line 31
Definition of Drupal\rlayout\Plugin\Derivative\Layout.

Class

Layout
Layout plugin derivative definition.

Namespace

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