public function EntityCollector::submitPick 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::submitPick()
Submit handler for the pick button.
File
- relation_entity_collector/
src/ Form/ EntityCollector.php, line 283 - Contains \Drupal\relation_entity_collector\Form\EntityCollector.
Class
- EntityCollector
- Provides a entity collector form.
Namespace
Drupal\relation_entity_collector\FormCode
public function submitPick(array &$form, FormStateInterface $form_state) {
$_SESSION['relation_entity_keys'][] = $form_state['pick'];
$_SESSION['relation_type'] = $form_state['values']['relation_type'];
$form_state['rebuild'] = TRUE;
}