function PluginDefinition::setClass

Same name in other branches
  1. 9 core/lib/Drupal/Component/Plugin/Definition/PluginDefinition.php \Drupal\Component\Plugin\Definition\PluginDefinition::setClass()
  2. 8.9.x core/lib/Drupal/Component/Plugin/Definition/PluginDefinition.php \Drupal\Component\Plugin\Definition\PluginDefinition::setClass()
  3. 10 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\Definition

Code

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.