public function BulkEditDeriver::getDerivativeDefinitions in Views Bulk Edit 8
Gets the definition of all derivatives of a base plugin.
Parameters
array $base_plugin_definition: The definition array of the base plugin.
Return value
array An array of full derivative definitions keyed on derivative id.
Overrides DeriverBase::getDerivativeDefinitions
See also
getDerivativeDefinition()
File
- src/
Plugin/ Derivative/ BulkEditDeriver.php, line 15
Class
- BulkEditDeriver
- A action deriver.
Namespace
Drupal\views_bulk_edit\Plugin\DerivativeCode
public function getDerivativeDefinitions($base_plugin_definition) {
foreach ($this
->getEnabledEntityTypeIds() as $entity_type_id) {
$this->derivatives[$entity_type_id] = $base_plugin_definition;
$this->derivatives[$entity_type_id]['type'] = $entity_type_id;
}
return $this->derivatives;
}