You are here

protected function ParagraphsWidget::getSelectionHandlerSetting in Paragraphs 8

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

File

src/Plugin/Field/FieldWidget/ParagraphsWidget.php, line 2123

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;
}