You are here

protected function MediaEditForm::getTargetBundles in Media Directories 3.x

Same name and namespace in other branches
  1. 8 modules/media_directories_ui/src/Form/MediaEditForm.php \Drupal\media_directories_ui\Form\MediaEditForm::getTargetBundles()
  2. 2.x modules/media_directories_ui/src/Form/MediaEditForm.php \Drupal\media_directories_ui\Form\MediaEditForm::getTargetBundles()

Parameters

\Drupal\Core\Form\FormStateInterface $form_state:

Return value

mixed

File

modules/media_directories_ui/src/Form/MediaEditForm.php, line 97

Class

MediaEditForm
Class MediaEditForm

Namespace

Drupal\media_directories_ui\Form

Code

protected function getTargetBundles(FormStateInterface $form_state) {
  $bundles = $form_state
    ->get('target_bundles');
  return $bundles;
}