36851763af95761b06171b0bd5ec5c942a471ffb
[yaffs-website] / web / modules / contrib / entity_browser / src / Plugin / EntityBrowser / WidgetSelector / Single.php
1 <?php
2
3 namespace Drupal\entity_browser\Plugin\EntityBrowser\WidgetSelector;
4
5 use Drupal\entity_browser\WidgetSelectorBase;
6 use Drupal\Core\Form\FormStateInterface;
7
8 /**
9  * Displays only first widget.
10  *
11  * @EntityBrowserWidgetSelector(
12  *   id = "single",
13  *   label = @Translation("Single widget"),
14  *   description = @Translation("Displays only the first configured widget. Use this if you plan to have only one widget available.")
15  * )
16  */
17 class Single extends WidgetSelectorBase {
18
19   /**
20    * {@inheritdoc}
21    */
22   public function getForm(array &$form, FormStateInterface &$form_state) {
23     return array();
24   }
25
26 }