3 namespace Drupal\entity_browser\Annotation;
5 use Drupal\Component\Annotation\Plugin;
8 * Defines an entity browser widget annotation object.
10 * @see hook_entity_browser_widget_info_alter()
14 class EntityBrowserWidget extends Plugin {
24 * The human-readable name of the widget.
26 * @ingroup plugin_translatable
28 * @var \Drupal\Core\Annotation\Translation
33 * A brief description of the widget.
35 * This will be shown when adding or configuring this widget.
37 * @ingroup plugin_translatable
39 * @var \Drupal\Core\Annotation\Translation (optional)
41 public $description = '';
44 * Indicates that widget supports auto selection of entities.
48 public $auto_select = FALSE;