public function SaveDeriver::getDerivativeDefinitions in Workbench Moderation to Content Moderation 8.2
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 ModerationDeriver::getDerivativeDefinitions
See also
getDerivativeDefinition()
1 call to SaveDeriver::getDerivativeDefinitions()
- ClearDeriver::getDerivativeDefinitions in src/
Plugin/ Deriver/ ClearDeriver.php - Gets the definition of all derivatives of a base plugin.
1 method overrides SaveDeriver::getDerivativeDefinitions()
- ClearDeriver::getDerivativeDefinitions in src/
Plugin/ Deriver/ ClearDeriver.php - Gets the definition of all derivatives of a base plugin.
File
- src/
Plugin/ Deriver/ SaveDeriver.php, line 10
Class
Namespace
Drupal\wbm2cm\Plugin\DeriverCode
public function getDerivativeDefinitions($base_plugin_definition) {
$this->derivatives = parent::getDerivativeDefinitions($base_plugin_definition);
foreach ($this->derivatives as $id => &$derivative) {
$derivative['source']['plugin'] = "content_entity_revision:{$id}";
}
return $this->derivatives;
}