public function SessionInterface::has

Checks if an attribute is defined.

@api

Parameters

string $name The attribute name:

Return value

Boolean true if the attribute is defined, false otherwise

1 method overrides SessionInterface::has()
Session::has in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Session.php
Checks if an attribute is defined.

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/SessionInterface.php, line 121

Class

SessionInterface
Interface for the session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function has($name);