You are here

public function SelectionBase::getDerivativeDefinition in Multi-path autocomplete 8

Implements DerivativeInterface::getDerivativeDefinition().

File

lib/Drupal/mpac/Plugin/Derivative/SelectionBase.php, line 27
Contains \Drupal\mpac\Plugin\Derivative\SelectionBase.

Class

SelectionBase
Base class for selection plugins provided by Multi-path autocomplete.

Namespace

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