protected function AutocompleteDeluxeWidget::getSelectionHandlerSetting in Autocomplete Deluxe 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldWidget/AutocompleteDeluxeWidget.php \Drupal\autocomplete_deluxe\Plugin\Field\FieldWidget\AutocompleteDeluxeWidget::getSelectionHandlerSetting()
Returns the value of a setting for the entity reference selection handler.
Parameters
string $setting_name: The setting name.
Return value
mixed The setting value.
2 calls to AutocompleteDeluxeWidget::getSelectionHandlerSetting()
- AutocompleteDeluxeWidget::formElement in src/
Plugin/ Field/ FieldWidget/ AutocompleteDeluxeWidget.php - Returns the form for a single field widget.
- AutocompleteDeluxeWidget::getAutocreateBundle in src/
Plugin/ Field/ FieldWidget/ AutocompleteDeluxeWidget.php - Returns the name of the bundle which will be used for autocreated entities.
File
- src/
Plugin/ Field/ FieldWidget/ AutocompleteDeluxeWidget.php, line 369
Class
- AutocompleteDeluxeWidget
- Plugin implementation of the 'options_buttons' widget.
Namespace
Drupal\autocomplete_deluxe\Plugin\Field\FieldWidgetCode
protected function getSelectionHandlerSetting($setting_name) {
$settings = $this
->getFieldSetting('handler_settings');
return isset($settings[$setting_name]) ? $settings[$setting_name] : NULL;
}