You are here

public function Unit::setUnitTypeId in Booking and Availability Management Tools for Drupal 8

Sets the entity's UnitType ID.

Parameters

int $utid: The UnitType entity id.

Return value

$this

Overrides UnitInterface::setUnitTypeId

File

modules/bat_unit/src/Entity/Unit.php, line 138
Contains \Drupal\bat_unit\Entity\Unit.

Class

Unit
Defines the Unit entity.

Namespace

Drupal\bat_unit\Entity

Code

public function setUnitTypeId($utid) {
  $this
    ->set('unit_type_id', $utid);
  return $this;
}