public function EntityCollector::submitClear in Relation 8
Same name and namespace in other branches
- 8.2 relation_entity_collector/src/Form/EntityCollector.php \Drupal\relation_entity_collector\Form\EntityCollector::submitClear()
Submit handler for the clear button.
File
- relation_entity_collector/
src/ Form/ EntityCollector.php, line 306 - Contains \Drupal\relation_entity_collector\Form\EntityCollector.
Class
- EntityCollector
- Provides a entity collector form.
Namespace
Drupal\relation_entity_collector\FormCode
public function submitClear(array &$form, FormStateInterface $form_state) {
unset($_SESSION['relation_type'], $_SESSION['relation_entity_keys'], $_SESSION['relation_edit']);
$form_state['rebuild'] = TRUE;
}