You are here

protected function WidgetBase::getFieldSettings in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/WidgetBase.php \Drupal\Core\Field\WidgetBase::getFieldSettings()
  2. 9 core/lib/Drupal/Core/Field/WidgetBase.php \Drupal\Core\Field\WidgetBase::getFieldSettings()

Returns the array of field settings.

Return value

array The array of settings.

3 calls to WidgetBase::getFieldSettings()
FileWidget::formElement in core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php
Returns the form for a single field widget.
FileWidget::formMultipleElements in core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php
Overrides \Drupal\Core\Field\WidgetBase::formMultipleElements().
NumberWidget::formElement in core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/NumberWidget.php
Returns the form for a single field widget.

File

core/lib/Drupal/Core/Field/WidgetBase.php, line 552

Class

WidgetBase
Base class for 'Field widget' plugin implementations.

Namespace

Drupal\Core\Field

Code

protected function getFieldSettings() {
  return $this->fieldDefinition
    ->getSettings();
}