public function Ng2BlockDeriver::getDerivativeDefinitions in Decoupled Blocks 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 PdbBlockDeriver::getDerivativeDefinitions
See also
getDerivativeDefinition()
File
- modules/
pdb_ng2/ src/ Plugin/ Derivative/ Ng2BlockDeriver.php, line 15
Class
- Ng2BlockDeriver
- Derives block plugin definitions for Angular 2 components.
Namespace
Drupal\pdb_ng2\Plugin\DerivativeCode
public function getDerivativeDefinitions($base_plugin_definition) {
$definitions = parent::getDerivativeDefinitions($base_plugin_definition);
return array_filter($definitions, function (array $definition) {
return $definition['info']['presentation'] == 'ng2';
});
}