public function PluginDefinitionInterface::mergeDefaultDefinition in Plugin 8.2
Merges another definition into this one, using the other for defaults.
Parameters
static $other_definition: The other definition to merge into $this. It will not override $this, but be used to extract default values from instead.
Return value
$this
Throws
\InvalidArgumentException Thrown if $other_definition is no instance of $this.
File
- src/
PluginDefinition/ PluginDefinitionInterface.php, line 68
Class
- PluginDefinitionInterface
- Defines a plugin definition.
Namespace
Drupal\plugin\PluginDefinitionCode
public function mergeDefaultDefinition(PluginDefinitionInterface $other_definition);