public function EntityUnitInterface::getUnit in Booking and Availability Management Tools for Drupal 8
Returns the entity's Unit entity.
Return value
\Drupal\bat_unit\UnitInterface The Unit entity.
File
- modules/
bat_unit/ src/ EntityUnitInterface.php, line 21 - Contains \Drupal\bat_unit\EntityUnitInterface.
Class
- EntityUnitInterface
- Defines a common interface for entities that have an associated bat Unit.
Namespace
Drupal\bat_unitCode
public function getUnit();