3 namespace Drupal\entity_browser\Plugin\EntityBrowser\WidgetSelector;
5 use Drupal\entity_browser\WidgetSelectorBase;
6 use Drupal\Core\Form\FormStateInterface;
9 * Displays only first widget.
11 * @EntityBrowserWidgetSelector(
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.")
17 class Single extends WidgetSelectorBase {
22 public function getForm(array &$form, FormStateInterface &$form_state) {