You are here

public static function EntityBrowserElement::getSelectionModeOptions in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/Element/EntityBrowserElement.php \Drupal\entity_browser\Element\EntityBrowserElement::getSelectionModeOptions()

Get selection mode options.

Return value

array Selection mode options.

2 calls to EntityBrowserElement::getSelectionModeOptions()
EntityReferenceBrowserWidget::settingsForm in src/Plugin/Field/FieldWidget/EntityReferenceBrowserWidget.php
Returns a form to configure settings for the widget.
EntityReferenceBrowserWidget::summaryBase in src/Plugin/Field/FieldWidget/EntityReferenceBrowserWidget.php
Provides base for settings summary shared by all EB widgets.

File

src/Element/EntityBrowserElement.php, line 104

Class

EntityBrowserElement
Provides an Entity Browser form element.

Namespace

Drupal\entity_browser\Element

Code

public static function getSelectionModeOptions() {
  return [
    static::SELECTION_MODE_APPEND => t('Append to selection'),
    static::SELECTION_MODE_PREPEND => t('Prepend selection'),
    static::SELECTION_MODE_EDIT => t('Edit selection'),
  ];
}