public function DumperCollection::getAttribute in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Matcher/Dumper/DumperCollection.php \Symfony\Component\Routing\Matcher\Dumper\DumperCollection::getAttribute()
Returns an attribute by name.
Parameters
string $name The attribute name:
mixed $default Default value is the attribute doesn't exist:
Return value
mixed The attribute value
File
- vendor/
symfony/ routing/ Matcher/ Dumper/ DumperCollection.php, line 136
Class
- DumperCollection
- Collection of routes.
Namespace
Symfony\Component\Routing\Matcher\DumperCode
public function getAttribute($name, $default = null) {
return $this
->hasAttribute($name) ? $this->attributes[$name] : $default;
}