You are here

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

Sets the entity's Unit entity.

Parameters

\Drupal\bat_unit\UnitInterface $unit: The Unit entity.

Return value

$this

File

modules/bat_unit/src/EntityUnitInterface.php, line 31
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 setUnit(UnitInterface $unit);