AbstractToken::getUsername()

string getUsername() Returns the username. Return Value string

AbstractToken::isAuthenticated()

bool isAuthenticated() Returns whether the user is authenticated or not. Return Value bool true if the token has been authenticated, false otherwise

AbstractToken::serialize()

serialize() {@inheritdoc}

AbstractToken::eraseCredentials()

eraseCredentials() Removes sensitive information from the token.

AbstractToken

class AbstractToken implements TokenInterface Base class for Token instances. Methods __construct(array $roles = array()) Constructor. RoleInterface[] getRoles() Returns the user roles. string getUsername() Returns the username. mixed getUser() Returns a user representation. setUser(mixed $user) Sets the user in the token. bool isAuthenticated() Returns whether the user is authenticated or not. setAuthenticated($authenticated) Sets the authenticated flag.

AbstractToken::getAttribute()

mixed getAttribute(string $name) Returns an attribute value. Parameters string $name The attribute name Return Value mixed The attribute value Exceptions InvalidArgumentException When attribute doesn't exist for this token

AbstractToken::getRoles()

RoleInterface[] getRoles() Returns the user roles. Return Value RoleInterface[] An array of RoleInterface instances.

AbstractToken::getAttributes()

array getAttributes() Returns the token attributes. Return Value array The token attributes

AbstractSurrogateFragmentRenderer

class AbstractSurrogateFragmentRenderer extends RoutableFragmentRenderer Implements Surrogate rendering strategy. Methods setFragmentPath(string $path) Sets the fragment path that triggers the fragment listener. from RoutableFragmentRenderer __construct(SurrogateInterface $surrogate = null, FragmentRendererInterface $inlineStrategy, UriSigner $signer = null) Constructor. Response render(string|ControllerReference $uri, Request $request, array $options = array()) Renders a URI an

AbstractRendererEngine::getResourceForBlockName()

mixed getResourceForBlockName(FormView $view, string $blockName) Returns the resource for a block name. The resource is first searched in the themes attached to $view, then in the themes of its parent view and so on, until a resource was found. The type of the resource is decided by the implementation. The resource is later passed to {@link renderBlock()} by the rendering algorithm. Parameters FormView $view The view for determining the used themes First the themes attached dir