function StaticReflectionClass::hasClassAttribute

Same name in other branches
  1. 11.x core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionClass.php \Drupal\Component\Annotation\Doctrine\StaticReflectionClass::hasClassAttribute()

Determines if the class has the provided class attribute.

Parameters

string $attribute The attribute to check for.:

Return value

bool

File

core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionClass.php, line 89

Class

StaticReflectionClass

Namespace

Drupal\Component\Annotation\Doctrine

Code

public function hasClassAttribute(string $attribute) {
    return $this->staticReflectionParser
        ->hasClassAttribute($attribute);
}

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