protected function EntityReferenceBrowserWidget::selectionModeOptions in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldWidget/EntityReferenceBrowserWidget.php \Drupal\entity_browser\Plugin\Field\FieldWidget\EntityReferenceBrowserWidget::selectionModeOptions()
Gets options that define where newly added entities are inserted.
Return value
array Mode labels indexed by key.
File
- src/
Plugin/ Field/ FieldWidget/ EntityReferenceBrowserWidget.php, line 742
Class
- EntityReferenceBrowserWidget
- Plugin implementation of the 'entity_reference' widget for entity browser.
Namespace
Drupal\entity_browser\Plugin\Field\FieldWidgetCode
protected function selectionModeOptions() {
return [
'append' => $this
->t('Append'),
'prepend' => $this
->t('Prepend'),
];
}