class Attribute
Annotation that can be used to signal to the parser to check the attribute type during the parsing process.
Hierarchy
- class \Drupal\Component\Annotation\Doctrine\Annotation\Attribute
Expanded class hierarchy of Attribute
Related topics
1 file declares its use of Attribute
- DocParser.php in core/lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php 
- This class is a near-copy of Doctrine\Common\Annotations\DocParser, which is part of the Doctrine project: <http://www.doctrine-project.org>. It was copied from version 1.2.7.
6 string references to 'Attribute'
- claro_preprocess_input in core/themes/ claro/ claro.theme 
- Implements template_preprocess_HOOK() for input.
- claro_preprocess_select in core/themes/ claro/ claro.theme 
- Implements template_preprocess_HOOK() for select.
- CompositeFormElementTrait::preRenderCompositeFormElement in core/lib/ Drupal/ Core/ Render/ Element/ CompositeFormElementTrait.php 
- Adds form element theming to an element if its title or description is set.
- FormActionXssTest::testFormActionXss in core/tests/ Drupal/ KernelTests/ Core/ Form/ FormActionXssTest.php 
- Tests form action attribute for XSS.
- FormTestLabelForm::buildForm in core/modules/ system/ tests/ modules/ form_test/ src/ Form/ FormTestLabelForm.php 
- Form constructor.
File
- 
              core/lib/ Drupal/ Component/ Annotation/ Doctrine/ Annotation/ Attribute.php, line 35 
Namespace
Drupal\Component\Annotation\Doctrine\AnnotationView source
final class Attribute {
  /** @var string */
  public $name;
  /** @var string */
  public $type;
  /** @var bool */
  public $required = false;
}Members
| Title Sort descending | Modifiers | Object type | Summary | 
|---|---|---|---|
| Attribute::$name | public | property | @var string | 
| Attribute::$required | public | property | @var bool | 
| Attribute::$type | public | property | @var string | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
