public function FilebrowserFormController::submit in Filebrowser 8
File
- lib/
Drupal/ filebrowser/ Entity/ Form/ FilebrowserFormController.php, line 41 - Definition of Drupal\foo_bar\Entity\Form\FooBarFormController.
Class
- FilebrowserFormController
- Form controller for the filebrowser entity edit forms. Define the form for adding and editing entity content. It is called by the '_entity_form' definition in the routing.
Namespace
Drupal\filebrowser\Entity\FormCode
public function submit(array $form, array &$form_state) {
// Build the entity object from the submitted values.
$entity = parent::submit($form, $form_state);
$form_state['redirect_route']['route_name'] = 'filebrowser.list';
return $entity;
}