You are here

public function MergeablePluginDefinitionTrait::mergeOverrideDefinition in Plugin 8.2

Implements \Drupal\plugin\PluginDefinition\PluginDefinitionInterface::mergeOverrideDefinition().

File

src/PluginDefinition/MergeablePluginDefinitionTrait.php, line 36

Class

MergeablePluginDefinitionTrait
Implements the plugin merger parts of \Drupal\plugin\PluginDefinition\PluginDefinitionInterface.

Namespace

Drupal\plugin\PluginDefinition

Code

public function mergeOverrideDefinition(PluginDefinitionInterface $other_definition) {
  $this
    ->validateMergeDefinition($other_definition);
  $this
    ->doMergeOverrideDefinition($other_definition);
  return $this;
}