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

1 method overrides Plugin::setClass()
CKEditor5Plugin::setClass in core/modules/ckeditor5/src/Annotation/CKEditor5Plugin.php
Sets the class of the annotated class.

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;
}