You are here

public function ArrayPluginDefinitionDecorator::doMergeOverrideDefinition 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.

Overrides MergeablePluginDefinitionTrait::doMergeOverrideDefinition

File

src/PluginDefinition/ArrayPluginDefinitionDecorator.php, line 275

Class

ArrayPluginDefinitionDecorator
Provides a plugin definition based on an array.

Namespace

Drupal\plugin\PluginDefinition

Code

public function doMergeOverrideDefinition(PluginDefinitionInterface $other_definition) {

  /** @var \Drupal\plugin\PluginDefinition\ArrayPluginDefinitionInterface $other_definition */
  $this
    ->mergeOverrideArrayDefinition($other_definition
    ->getArrayDefinition());
}