You are here

public function ContextEditForm::collection in Context 8

Same name and namespace in other branches
  1. 8.4 modules/context_ui/src/Form/ContextEditForm.php \Drupal\context_ui\Form\ContextEditForm::collection()

Collection function makes redirection to route name.

Parameters

array $form: Form object.

\Drupal\Core\Form\FormStateInterface $form_state: From state object.

File

modules/context_ui/src/Form/ContextEditForm.php, line 263

Class

ContextEditForm

Namespace

Drupal\context_ui\Form

Code

public function collection(array $form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('entity.context.collection');
}