Attribute::$required

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Component/Annotation/Doctrine/Annotation/Attribute.php \Drupal\Component\Annotation\Doctrine\Annotation\Attribute::required

@var bool

Type: required

File

core/lib/Drupal/Component/Annotation/Doctrine/Annotation/Attribute.php, line 44

Class

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

Namespace

Drupal\Component\Annotation\Doctrine\Annotation

Code

public $required = false;

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