You are here

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

File

src/Plugin/Field/FieldWidget/InlineParagraphsWidget.php, line 1235

Class

InlineParagraphsWidget
Plugin implementation of the 'entity_reference 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;
}