protected function LayoutParagraphsWidget::getSelectionHandlerSetting in Layout Paragraphs 1.0.x
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 LayoutParagraphsWidget::getSelectionHandlerSetting()
- LayoutParagraphsWidget::getAllowedTypes in src/
Plugin/ Field/ FieldWidget/ LayoutParagraphsWidget.php - Returns the sorted allowed types for a entity reference field.
File
- src/
Plugin/ Field/ FieldWidget/ LayoutParagraphsWidget.php, line 2131
Class
- LayoutParagraphsWidget
- Entity Reference with Layout field widget.
Namespace
Drupal\layout_paragraphs\Plugin\Field\FieldWidgetCode
protected function getSelectionHandlerSetting($setting_name) {
$settings = $this
->getFieldSetting('handler_settings');
return isset($settings[$setting_name]) ? $settings[$setting_name] : NULL;
}