function Plugin::setClass

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Component/Annotation/Plugin.php \Drupal\Component\Annotation\Plugin::setClass()
  2. 10 core/lib/Drupal/Component/Annotation/Plugin.php \Drupal\Component\Annotation\Plugin::setClass()
  3. 11.x core/lib/Drupal/Component/Annotation/Plugin.php \Drupal\Component\Annotation\Plugin::setClass()

Sets the class of the annotated class.

Parameters

string $class: The class of the annotated class.

Overrides AnnotationInterface::setClass

File

core/lib/Drupal/Component/Annotation/Plugin.php, line 108

Class

Plugin
Defines a Plugin annotation object.

Namespace

Drupal\Component\Annotation

Code

public function setClass($class) {
  $this->definition['class'] = $class;
}

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