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

Breadcrumb

  1. Drupal Core 11.1.x

Attribute.php

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

Namespace

Doctrine\Common\Annotations\Annotation

File

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

View source
<?php

namespace Doctrine\Common\Annotations\Annotation;


/**
 * Annotation that can be used to signal to the parser
 * to check the attribute type during the parsing process.
 *
 * @Annotation
 */
final class Attribute {
    
    /** @var string */
    public $name;
    
    /** @var string */
    public $type;
    
    /** @var bool */
    public $required = false;

}

Classes

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

API Navigation

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