You are here

public function PluginDeriverDefinitionTrait::setDeriverClass in Plugin 8.2

Implements \Drupal\plugin\PluginDefinition\PluginDeriverDefinitionInterface::setDeriverClass().

File

src/PluginDefinition/PluginDeriverDefinitionTrait.php, line 24

Class

PluginDeriverDefinitionTrait
Implements \Drupal\plugin\PluginDefinition\PluginDeriverDefinitionInterface.

Namespace

Drupal\plugin\PluginDefinition

Code

public function setDeriverClass($class) {
  PluginDefinitionValidator::validateClass($class);
  $this->deriverClass = $class;
  return $this;
}