You are here

abstract protected function PhysicalWidgetBase::getUnitClass in Physical Fields 8

Gets the unit class for the current field.

Return value

string The fully qualified class name.

2 calls to PhysicalWidgetBase::getUnitClass()
PhysicalWidgetBase::getDefaultUnit in src/Plugin/Field/FieldWidget/PhysicalWidgetBase.php
Gets the default unit for the current field.
PhysicalWidgetBase::getUnits in src/Plugin/Field/FieldWidget/PhysicalWidgetBase.php
Gets the available units for the current field.
2 methods override PhysicalWidgetBase::getUnitClass()
DimensionsDefaultWidget::getUnitClass in src/Plugin/Field/FieldWidget/DimensionsDefaultWidget.php
Gets the unit class for the current field.
MeasurementDefaultWidget::getUnitClass in src/Plugin/Field/FieldWidget/MeasurementDefaultWidget.php
Gets the unit class for the current field.

File

src/Plugin/Field/FieldWidget/PhysicalWidgetBase.php, line 93

Class

PhysicalWidgetBase
Provides base functionality for physical widgets.

Namespace

Drupal\physical\Plugin\Field\FieldWidget

Code

protected abstract function getUnitClass();