public function Unit::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 UnitInterface::getUnitTypeId
File
- modules/
bat_unit/ src/ Entity/ Unit.php, line 124 - Contains \Drupal\bat_unit\Entity\Unit.
Class
- Unit
- Defines the Unit entity.
Namespace
Drupal\bat_unit\EntityCode
public function getUnitTypeId() {
return $this
->get('unit_type_id')->target_id;
}