public function PluginDefinitionInterface::mergeOverrideDefinition in Plugin 8.2
Merges another definition into this one, using the other for overrides.
Parameters
static $other_definition: The other definition to merge into $this. It will override any values already set in $this.
Return value
$this
Throws
\InvalidArgumentException Thrown if $other_definition is no instance of $this.
File
- src/
PluginDefinition/ PluginDefinitionInterface.php, line 82
Class
- PluginDefinitionInterface
- Defines a plugin definition.
Namespace
Drupal\plugin\PluginDefinitionCode
public function mergeOverrideDefinition(PluginDefinitionInterface $other_definition);