You are here

public function AnnotationInterface::setClass in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Annotation/AnnotationInterface.php \Drupal\Component\Annotation\AnnotationInterface::setClass()
  2. 9 core/lib/Drupal/Component/Annotation/AnnotationInterface.php \Drupal\Component\Annotation\AnnotationInterface::setClass()

Sets the class of the annotated class.

Parameters

string $class: The class of the annotated class.

2 methods override AnnotationInterface::setClass()
AnnotationBase::setClass in core/lib/Drupal/Component/Annotation/AnnotationBase.php
Sets the class of the annotated class.
Plugin::setClass in core/lib/Drupal/Component/Annotation/Plugin.php
Sets the class of the annotated class.

File

core/lib/Drupal/Component/Annotation/AnnotationInterface.php, line 50

Class

AnnotationInterface
Defines a common interface for classed annotations.

Namespace

Drupal\Component\Annotation

Code

public function setClass($class);