AbstractType::buildView()

buildView(FormView $view, FormInterface $form, array $options) Builds the form view. This method is called for each type in the hierarchy starting from the top most type. Type extensions can further modify the view. A view of a form is built before the views of the child forms are built. This means that you cannot access child views in this method. If you need to do so, move your logic to {@link finishView()} instead. Parameters FormView $view The view FormInterface $form The form

AbstractType::finishView()

finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. This method gets called for each type in the hierarchy starting from the top most type. Type extensions can further modify the view. When this method is called, views of the form's children have already been built and finished and can be accessed. You should only implement such logic in this method that actually accesses child views. For everything else you are recommended to implement {@link buil

AbstractType::configureOptions()

configureOptions(OptionsResolver $resolver) Configures the options for this type. Parameters OptionsResolver $resolver The resolver for the options

AbstractToken::setUser()

setUser(mixed $user) Sets the user in the token. The user can be a UserInterface instance, or an object implementing a __toString method or the username as a regular string. Parameters mixed $user Exceptions InvalidArgumentException

AbstractToken::unserialize()

unserialize($serialized) {@inheritdoc} Parameters $serialized

AbstractToken::setAuthenticated()

setAuthenticated($authenticated) Sets the authenticated flag. Parameters $authenticated

AbstractToken::getUser()

mixed getUser() Returns a user representation. Return Value mixed Can be a UserInterface instance, an object implementing a __toString method, or the username as a regular string

AbstractToken::hasAttribute()

bool hasAttribute(string $name) Returns true if the attribute exists. Parameters string $name The attribute name Return Value bool true if the attribute exists, false otherwise

AbstractToken::getUsername()

string getUsername() Returns the username. Return Value string

AbstractToken::serialize()

serialize() {@inheritdoc}