public function DumperCollection::hasAttribute

Returns true if the attribute is defined.

Parameters

string $name The attribute name:

Return value

Boolean true if the attribute is defined, false otherwise

1 call to DumperCollection::hasAttribute()
DumperCollection::getAttribute in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php
Returns an attribute by name.

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/DumperCollection.php, line 121

Class

DumperCollection
Collection of routes.

Namespace

Symfony\Component\Routing\Matcher\Dumper

Code

public function hasAttribute($name) {
  return array_key_exists($name, $this->attributes);
}