protected function EntityBrowserForm::getSelectedEntities in Entity Browser 8.2
Same name and namespace in other branches
- 8 src/Form/EntityBrowserForm.php \Drupal\entity_browser\Form\EntityBrowserForm::getSelectedEntities()
Returns currently selected entities.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: Form state.
Return value
\Drupal\Core\Entity\EntityInterface[] Array of currently selected entities.
1 call to EntityBrowserForm::getSelectedEntities()
- EntityBrowserForm::submitForm in src/
Form/ EntityBrowserForm.php - Form submission handler.
File
- src/
Form/ EntityBrowserForm.php, line 305
Class
- EntityBrowserForm
- The entity browser form.
Namespace
Drupal\entity_browser\FormCode
protected function getSelectedEntities(FormStateInterface $form_state) {
return $form_state
->get([
'entity_browser',
'selected_entities',
]);
}