DocParser::$annotationMetadata

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::annotationMetadata
  2. 10 core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::annotationMetadata
  3. 11.x core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php \Drupal\Component\Annotation\Doctrine\DocParser::annotationMetadata

Hash-map for caching annotation metadata.

Type: array

File

core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php, line 136

Class

DocParser
A parser for docblock annotations.

Namespace

Drupal\Component\Annotation\Doctrine

Code

private static $annotationMetadata = array(
    'Doctrine\\Common\\Annotations\\Annotation\\Target' => array(
        'is_annotation' => true,
        'has_constructor' => true,
        'properties' => array(),
        'targets_literal' => 'ANNOTATION_CLASS',
        'targets' => Target::TARGET_CLASS,
        'default_property' => 'value',
        'attribute_types' => array(
            'value' => array(
                'required' => false,
                'type' => 'array',
                'array_type' => 'string',
                'value' => 'array<string>',
            ),
        ),
    ),
    'Doctrine\\Common\\Annotations\\Annotation\\Attribute' => array(
        'is_annotation' => true,
        'has_constructor' => false,
        'targets_literal' => 'ANNOTATION_ANNOTATION',
        'targets' => Target::TARGET_ANNOTATION,
        'default_property' => 'name',
        'properties' => array(
            'name' => 'name',
            'type' => 'type',
            'required' => 'required',
        ),
        'attribute_types' => array(
            'value' => array(
                'required' => true,
                'type' => 'string',
                'value' => 'string',
            ),
            'type' => array(
                'required' => true,
                'type' => 'string',
                'value' => 'string',
            ),
            'required' => array(
                'required' => false,
                'type' => 'boolean',
                'value' => 'boolean',
            ),
        ),
    ),
    'Doctrine\\Common\\Annotations\\Annotation\\Attributes' => array(
        'is_annotation' => true,
        'has_constructor' => false,
        'targets_literal' => 'ANNOTATION_CLASS',
        'targets' => Target::TARGET_CLASS,
        'default_property' => 'value',
        'properties' => array(
            'value' => 'value',
        ),
        'attribute_types' => array(
            'value' => array(
                'type' => 'array',
                'required' => true,
                'array_type' => 'Doctrine\\Common\\Annotations\\Annotation\\Attribute',
                'value' => 'array<Doctrine\\Common\\Annotations\\Annotation\\Attribute>',
            ),
        ),
    ),
    'Doctrine\\Common\\Annotations\\Annotation\\Enum' => array(
        'is_annotation' => true,
        'has_constructor' => true,
        'targets_literal' => 'ANNOTATION_PROPERTY',
        'targets' => Target::TARGET_PROPERTY,
        'default_property' => 'value',
        'properties' => array(
            'value' => 'value',
        ),
        'attribute_types' => array(
            'value' => array(
                'type' => 'array',
                'required' => true,
            ),
            'literal' => array(
                'type' => 'array',
                'required' => false,
            ),
        ),
    ),
);

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