function PluginDefinition::setClass
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/Definition/PluginDefinition.php \Drupal\Component\Plugin\Definition\PluginDefinition::setClass()
- 8.9.x core/lib/Drupal/Component/Plugin/Definition/PluginDefinition.php \Drupal\Component\Plugin\Definition\PluginDefinition::setClass()
- 11.x core/lib/Drupal/Component/Plugin/Definition/PluginDefinition.php \Drupal\Component\Plugin\Definition\PluginDefinition::setClass()
Overrides PluginDefinitionInterface::setClass
1 call to PluginDefinition::setClass()
- EntityType::setClass in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Sets the class.
2 methods override PluginDefinition::setClass()
- CKEditor5PluginDefinition::setClass in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginDefinition.php - Sets the class.
- EntityType::setClass in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Sets the class.
File
-
core/
lib/ Drupal/ Component/ Plugin/ Definition/ PluginDefinition.php, line 42
Class
- PluginDefinition
- Provides object-based plugin definitions.
Namespace
Drupal\Component\Plugin\DefinitionCode
public function setClass($class) {
$this->class = $class;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.