Returns an attribute.
@api
Parameters
string $name The attribute name:
mixed $default The default value if not found.:
Return value
mixed
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);