public function DefaultWizardDeriver::getDerivativeDefinition

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

Overrides DerivativeInterface::getDerivativeDefinition

File

drupal/core/modules/views/lib/Drupal/views/Plugin/Type/DefaultWizardDeriver.php, line 26
Definition of Drupal\views\Plugin\Type\DefaultWizardDeriver.

Class

DefaultWizardDeriver
A derivative class which provides automatic wizards for all base tables.

Namespace

Drupal\views\Plugin\Type

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];
}