You are here

public function PluginCollectionItemInterface::validatePluginInstance in Plugin 8.2

Validates a plugin instance.

Parameters

\Drupal\Component\Plugin\PluginInspectionInterface $plugin_instance:

Throws

\Exception

Deprecated

Deprecated as of 8.x-2.0 and scheduled for removal before 8.x-3.0. Use static::getPluginType()->getPluginManager()->hasDefinition() instead.

1 method overrides PluginCollectionItemInterface::validatePluginInstance()
PluginCollectionItemBase::validatePluginInstance in src/Plugin/Field/FieldType/PluginCollectionItemBase.php
Validates a plugin instance.

File

src/Plugin/Field/FieldType/PluginCollectionItemInterface.php, line 31

Class

PluginCollectionItemInterface
Defines a plugin collection field item.

Namespace

Drupal\plugin\Plugin\Field\FieldType

Code

public function validatePluginInstance(PluginInspectionInterface $plugin_instance);