function AnnotationInterface::setClass
Same name in other branches
- 9 core/lib/Drupal/Component/Annotation/AnnotationInterface.php \Drupal\Component\Annotation\AnnotationInterface::setClass()
- 10 core/lib/Drupal/Component/Annotation/AnnotationInterface.php \Drupal\Component\Annotation\AnnotationInterface::setClass()
- 11.x core/lib/Drupal/Component/Annotation/AnnotationInterface.php \Drupal\Component\Annotation\AnnotationInterface::setClass()
Sets the class of the annotated class.
Parameters
string $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 48
Class
- AnnotationInterface
- Defines a common interface for classed annotations.
Namespace
Drupal\Component\AnnotationCode
public function setClass($class);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.