public function SessionInterface::get

Returns an attribute.

@api

Parameters

string $name The attribute name:

mixed $default The default value if not found.:

Return value

mixed

1 method overrides SessionInterface::get()
Session::get in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Session.php
Returns an attribute.

File

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

Class

SessionInterface
Interface for the session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function get($name, $default = null);