public function PluginDefinition::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
File
- src/
PluginDefinition/ PluginDefinition.php, line 55
Class
- PluginDefinition
- Provides a plugin definition.
Namespace
Drupal\plugin\PluginDefinitionCode
public function setClass($class) {
PluginDefinitionValidator::validateClass($class);
$this->class = $class;
return $this;
}