Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Attribute.php

class Attribute

Same name in this branch
  1. 11.1.x vendor/phpstan/phpdoc-parser/src/Ast/Attribute.php \PHPStan\PhpDocParser\Ast\Attribute
  2. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Attribute.php \PhpParser\Node\Attribute
  3. 11.1.x vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/Attribute.php \SlevomatCodingStandard\Helpers\Attribute
  4. 11.1.x vendor/mck89/peast/lib/Peast/Selector/Node/Part/Attribute.php \Peast\Selector\Node\Part\Attribute
  5. 11.1.x core/lib/Drupal/Core/Template/Attribute.php \Drupal\Core\Template\Attribute

Annotation that can be used to signal to the parser to check the attribute type during the parsing process.

@Annotation

Hierarchy

  • class \Doctrine\Common\Annotations\Annotation\Attribute

Expanded class hierarchy of Attribute

2 files declare their use of Attribute
DocParser.php in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php
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&gt;. It was copied from version 1.2.7.
16 string references to 'Attribute'
Attribute::getType in vendor/nikic/php-parser/lib/PhpParser/Node/Attribute.php
Gets the type of the node.
AttributeClassLoader::supports in vendor/symfony/routing/Loader/AttributeClassLoader.php
AttributeDirectoryLoader::supports in vendor/symfony/routing/Loader/AttributeDirectoryLoader.php
AttributeFileLoader::supports in vendor/symfony/routing/Loader/AttributeFileLoader.php
claro_preprocess_input in core/themes/claro/claro.theme
Implements template_preprocess_HOOK() for input.

... See full list

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attribute.php, line 11

Namespace

Doctrine\Common\Annotations\Annotation
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal