function PluginDefinitionInterface::setClass

Same name in other branches
  1. 9 core/lib/Drupal/Component/Plugin/Definition/PluginDefinitionInterface.php \Drupal\Component\Plugin\Definition\PluginDefinitionInterface::setClass()
  2. 8.9.x core/lib/Drupal/Component/Plugin/Definition/PluginDefinitionInterface.php \Drupal\Component\Plugin\Definition\PluginDefinitionInterface::setClass()
  3. 11.x core/lib/Drupal/Component/Plugin/Definition/PluginDefinitionInterface.php \Drupal\Component\Plugin\Definition\PluginDefinitionInterface::setClass()

Sets the class.

Parameters

string $class: A fully qualified class name.

Return value

static

Throws

\InvalidArgumentException If the class is invalid.

1 method overrides PluginDefinitionInterface::setClass()
PluginDefinition::setClass in core/lib/Drupal/Component/Plugin/Definition/PluginDefinition.php
Sets the class.

File

core/lib/Drupal/Component/Plugin/Definition/PluginDefinitionInterface.php, line 33

Class

PluginDefinitionInterface
Defines a plugin definition.

Namespace

Drupal\Component\Plugin\Definition

Code

public function setClass($class);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.