Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityReferenceAutocompleteWidget.php

function EntityReferenceAutocompleteWidget::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.

1 call to EntityReferenceAutocompleteWidget::getSelectionHandlerSetting()
EntityReferenceAutocompleteWidget::getAutocreateBundle in core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php
Returns the name of the bundle which will be used for autocreated entities.

File

core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php, line 205

Class

EntityReferenceAutocompleteWidget
Plugin implementation of the 'entity_reference_autocomplete' widget.

Namespace

Drupal\Core\Field\Plugin\Field\FieldWidget

Code

protected function getSelectionHandlerSetting($setting_name) {
    $settings = $this->getFieldSetting('handler_settings');
    return $settings[$setting_name] ?? NULL;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal