public function ArrayPluginDefinitionDecorator::setClass in Plugin 8.2
Sets the class.
Parameters
string $class: A fully qualified class name.
Return value
static
Throws
\InvalidArgumentException If the class is invalid.
Overrides PluginDefinitionInterface::setClass
1 call to ArrayPluginDefinitionDecorator::setClass()
- ArrayPluginDefinitionDecorator::offsetSet in src/
PluginDefinition/ ArrayPluginDefinitionDecorator.php
File
- src/
PluginDefinition/ ArrayPluginDefinitionDecorator.php, line 106
Class
- ArrayPluginDefinitionDecorator
- Provides a plugin definition based on an array.
Namespace
Drupal\plugin\PluginDefinitionCode
public function setClass($class) {
PluginDefinitionValidator::validateClass($class);
$this->arrayDefinition['class'] = $class;
return $this;
}