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

Breadcrumb

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

function 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 86

Class

StaticReflectionClass

Namespace

Drupal\Component\Annotation\Doctrine

Code

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

API Navigation

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