public function UnitInterface::setUnitType in Booking and Availability Management Tools for Drupal 8
Sets the entity's UnitType entity.
Parameters
\Drupal\bat_unit\UnitTypeInterface $property: The UnitType entity.
Return value
$this
Overrides EntityUnitTypeInterface::setUnitType
1 method overrides UnitInterface::setUnitType()
- Unit::setUnitType in modules/
bat_unit/ src/ Entity/ Unit.php - Sets the entity's UnitType entity.
File
- modules/
bat_unit/ src/ UnitInterface.php, line 27 - Contains \Drupal\bat_unit\UnitInterface.
Class
- UnitInterface
- Provides an interface for defining Unit entities.
Namespace
Drupal\bat_unitCode
public function setUnitType(UnitTypeInterface $unit_type);