public function ArrayPluginDefinitionDecorator::setDeriverClass in Plugin 8.2
Sets the deriver class.
Parameters
string $class: The fully qualified name of a class that implements \Drupal\Component\Plugin\Derivative\DeriverInterface.
Return value
$this
Throws
\InvalidArgumentException
Overrides PluginDeriverDefinitionInterface::setDeriverClass
1 call to ArrayPluginDefinitionDecorator::setDeriverClass()
- ArrayPluginDefinitionDecorator::offsetSet in src/
PluginDefinition/ ArrayPluginDefinitionDecorator.php
File
- src/
PluginDefinition/ ArrayPluginDefinitionDecorator.php, line 156
Class
- ArrayPluginDefinitionDecorator
- Provides a plugin definition based on an array.
Namespace
Drupal\plugin\PluginDefinitionCode
public function setDeriverClass($class) {
PluginDefinitionValidator::validateDeriverClass($class);
$this->arrayDefinition['deriver'] = $class;
return $this;
}