protected function ParagraphsWidget::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 ParagraphsWidget::getSelectionHandlerSetting()
ParagraphsWidget::getAccessibleOptions in paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php
Returns the available paragraphs type.
ParagraphsWidget::getAllowedTypes in paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php
Returns the sorted allowed types for a entity reference field.

File

paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php, line 2464

Class

ParagraphsWidget
Plugin implementation of the 'entity_reference_revisions paragraphs' widget.

Namespace

Drupal\paragraphs\Plugin\Field\FieldWidget

Code

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