You are here

protected function DimensionsDefaultWidget::getUnitClass in Physical Fields 8

Gets the unit class for the current field.

Return value

string The fully qualified class name.

Overrides PhysicalWidgetBase::getUnitClass

File

src/Plugin/Field/FieldWidget/DimensionsDefaultWidget.php, line 49

Class

DimensionsDefaultWidget
Plugin implementation of the 'physical_dimensions_default' widget.

Namespace

Drupal\physical\Plugin\Field\FieldWidget

Code

protected function getUnitClass() {
  return LengthUnit::class;
}