You are here

public function MergeablePluginDefinitionTrait::mergeDefaultDefinition in Plugin 8.2

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

File

src/PluginDefinition/MergeablePluginDefinitionTrait.php, line 15

Class

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

Namespace

Drupal\plugin\PluginDefinition

Code

public function mergeDefaultDefinition(PluginDefinitionInterface $other_definition) {
  $this
    ->validateMergeDefinition($other_definition);
  $this
    ->doMergeDefaultDefinition($other_definition);
  return $this;
}