public function GridBuilder::getDerivativeDefinition in Grid builder 8
Implements DerivativeInterface::getDerivativeDefinition().
File
- lib/
Drupal/ gridbuilder/ Plugin/ Derivative/ GridBuilder.php, line 30 - Definition of Drupal\gridbuilder\Plugin\Derivative\GridBuilder.
Class
- GridBuilder
- GridBuilder plugin derivative definition.
Namespace
Drupal\gridbuilder\Plugin\DerivativeCode
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];
}