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

File

paragraphs/src/Plugin/Field/FieldWidget/InlineParagraphsWidget.php, line 1246

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