You are here

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

Overrides MergeablePluginDefinitionTrait::doMergeDefaultDefinition

File

src/PluginDefinition/ArrayPluginDefinitionDecorator.php, line 267

Class

ArrayPluginDefinitionDecorator
Provides a plugin definition based on an array.

Namespace

Drupal\plugin\PluginDefinition

Code

public function doMergeDefaultDefinition(PluginDefinitionInterface $other_definition) {

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