You are here

public function EntityUnitInterface::getUnitId in Booking and Availability Management Tools for Drupal 8

Returns the entity's Unit ID.

Return value

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

File

modules/bat_unit/src/EntityUnitInterface.php, line 40
Contains \Drupal\bat_unit\EntityUnitInterface.

Class

EntityUnitInterface
Defines a common interface for entities that have an associated bat Unit.

Namespace

Drupal\bat_unit

Code

public function getUnitId();