You are here

public function PluginTypeInterface::ensureTypedPluginDefinition in Plugin 8.2

Ensures that a plugin definition is typed.

Parameters

\Drupal\plugin\PluginDefinition\PluginDefinitionInterface|mixed $plugin_definition: An original plugin definition of this type. It may already be typed.

Return value

\Drupal\plugin\PluginDefinition\PluginDefinitionInterface The typed plugin definition.

Throws

\InvalidArgumentException Thrown when a typed definition could not be returned.

1 method overrides PluginTypeInterface::ensureTypedPluginDefinition()
PluginType::ensureTypedPluginDefinition in src/PluginType/PluginType.php
Ensures that a plugin definition is typed.

File

src/PluginType/PluginTypeInterface.php, line 79

Class

PluginTypeInterface
Defines a plugin type.

Namespace

Drupal\plugin\PluginType

Code

public function ensureTypedPluginDefinition($plugin_definition);