You are here

public function UnitInterface::getUnitTypeId in Booking and Availability Management Tools for Drupal 8

Returns the entity's UnitType ID.

Return value

int|null The UnitType bat ID, or NULL in case the UnitType ID field has not been set on the entity.

Overrides EntityUnitTypeInterface::getUnitTypeId

1 method overrides UnitInterface::getUnitTypeId()
Unit::getUnitTypeId in modules/bat_unit/src/Entity/Unit.php
Returns the entity's UnitType ID.

File

modules/bat_unit/src/UnitInterface.php, line 23
Contains \Drupal\bat_unit\UnitInterface.

Class

UnitInterface
Provides an interface for defining Unit entities.

Namespace

Drupal\bat_unit

Code

public function getUnitTypeId();