has()
has(\Symfony\Component\HttpFoundation\Session\Attribute\string $name) : boolean
Checks if an attribute is defined.
Parameters
| \Symfony\Component\HttpFoundation\Session\Attribute\string |
$name |
|
Returns
boolean
— true if the attribute is defined, false otherwise