You are here

public static function UnitInterface::getLabels in Physical Fields 8

Gets the labels for the defined units.

Return value

array An array of labels keyed by unit.

5 methods override UnitInterface::getLabels()
AreaUnit::getLabels in src/AreaUnit.php
Gets the labels for the defined units.
LengthUnit::getLabels in src/LengthUnit.php
Gets the labels for the defined units.
TemperatureUnit::getLabels in src/TemperatureUnit.php
Gets the labels for the defined units.
VolumeUnit::getLabels in src/VolumeUnit.php
Gets the labels for the defined units.
WeightUnit::getLabels in src/WeightUnit.php
Gets the labels for the defined units.

File

src/UnitInterface.php, line 18

Class

UnitInterface
Provides the interface for unit classes.

Namespace

Drupal\physical

Code

public static function getLabels();