You are here

public function DumperCollection::hasAttribute in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Matcher/Dumper/DumperCollection.php \Symfony\Component\Routing\Matcher\Dumper\DumperCollection::hasAttribute()

Returns true if the attribute is defined.

Parameters

string $name The attribute name:

Return value

bool true if the attribute is defined, false otherwise

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

File

vendor/symfony/routing/Matcher/Dumper/DumperCollection.php, line 123

Class

DumperCollection
Collection of routes.

Namespace

Symfony\Component\Routing\Matcher\Dumper

Code

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