function FieldItemDeriver::getDerivativeDefinition
Same name in other branches
- 9 core/lib/Drupal/Core/Field/Plugin/DataType/Deriver/FieldItemDeriver.php \Drupal\Core\Field\Plugin\DataType\Deriver\FieldItemDeriver::getDerivativeDefinition()
- 8.9.x core/lib/Drupal/Core/Field/Plugin/DataType/Deriver/FieldItemDeriver.php \Drupal\Core\Field\Plugin\DataType\Deriver\FieldItemDeriver::getDerivativeDefinition()
- 10 core/lib/Drupal/Core/Field/Plugin/DataType/Deriver/FieldItemDeriver.php \Drupal\Core\Field\Plugin\DataType\Deriver\FieldItemDeriver::getDerivativeDefinition()
Overrides DeriverInterface::getDerivativeDefinition
File
-
core/
lib/ Drupal/ Core/ Field/ Plugin/ DataType/ Deriver/ FieldItemDeriver.php, line 61
Class
- FieldItemDeriver
- Provides data type plugins for each existing field type plugin.
Namespace
Drupal\Core\Field\Plugin\DataType\DeriverCode
public function getDerivativeDefinition($derivative_id, $base_plugin_definition) {
if (!isset($this->derivatives)) {
$this->getDerivativeDefinitions($base_plugin_definition);
}
if (isset($this->derivatives[$derivative_id])) {
return $this->derivatives[$derivative_id];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.