You are here

protected function ArrayPluginDefinitionDecorator::isDefinitionCompatible in Plugin 8.2

Returns whether another definition is compatible with this one.

Return value

bool Whether or not the definition is compatible with $this.

Overrides MergeablePluginDefinitionTrait::isDefinitionCompatible

File

src/PluginDefinition/ArrayPluginDefinitionDecorator.php, line 283

Class

ArrayPluginDefinitionDecorator
Provides a plugin definition based on an array.

Namespace

Drupal\plugin\PluginDefinition

Code

protected function isDefinitionCompatible(PluginDefinitionInterface $other_definition) {
  return $other_definition instanceof $this;
}