You are here

public function ContextEditForm::collection in Context 8.4

Same name and namespace in other branches
  1. 8 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 266

Class

ContextEditForm
Provides a form to edit context.

Namespace

Drupal\context_ui\Form

Code

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