You are here

public function DimensionsItem::getHeight in Physical Fields 8

Gets the height as a value object.

Return value

\Drupal\physical\Length The height.

File

src/Plugin/Field/FieldType/DimensionsItem.php, line 152

Class

DimensionsItem
Plugin implementation of the 'physical_dimensions' field type.

Namespace

Drupal\physical\Plugin\Field\FieldType

Code

public function getHeight() {
  return new Length($this->height, $this->unit);
}