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

Breadcrumb

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

function StaticReflectionParser::hasClassAttribute

Determines if the class has the provided class attribute.

Parameters

string $attribute The fully qualified attribute to check for.:

Return value

bool

File

core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionParser.php, line 363

Class

StaticReflectionParser
Parses a file for namespaces/use/class declarations.

Namespace

Drupal\Component\Annotation\Doctrine

Code

public function hasClassAttribute(string $attribute) : bool {
    $this->parse();
    return static::hasAttribute($this->classAttributes, $attribute);
}
RSS feed
Powered by Drupal