function AttributeInterface::setClass

Same name in other branches
  1. 10 core/lib/Drupal/Component/Plugin/Attribute/AttributeInterface.php \Drupal\Component\Plugin\Attribute\AttributeInterface::setClass()

Sets the class of the attributed class.

Parameters

class-string $class: The class of the attributed class.

1 method overrides AttributeInterface::setClass()
AttributeBase::setClass in core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php
Sets the class of the attributed class.

File

core/lib/Drupal/Component/Plugin/Attribute/AttributeInterface.php, line 50

Class

AttributeInterface
Defines a common interface for classed attributes.

Namespace

Drupal\Component\Plugin\Attribute

Code

public function setClass(string $class) : void;

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