function WidgetBase::getFieldSetting
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Field/WidgetBase.php \Drupal\Core\Field\WidgetBase::getFieldSetting()
Returns the value of a field setting.
Parameters
string $setting_name: The setting name.
Return value
mixed The setting value.
2 calls to WidgetBase::getFieldSetting()
- MediaLibraryWidget::formElement in core/
modules/ media_library/ src/ Plugin/ Field/ FieldWidget/ MediaLibraryWidget.php - Returns the form for a single field widget.
- MediaLibraryWidget::getAllowedMediaTypeIdsSorted in core/
modules/ media_library/ src/ Plugin/ Field/ FieldWidget/ MediaLibraryWidget.php - Gets the enabled media type IDs sorted by weight.
File
-
core/
lib/ Drupal/ Core/ Field/ WidgetBase.php, line 571
Class
- WidgetBase
- Base class for 'Field widget' plugin implementations.
Namespace
Drupal\Core\FieldCode
protected function getFieldSetting($setting_name) {
return $this->fieldDefinition
->getSetting($setting_name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.