You are here

public function UnitType::getEventValueDefaultField in Booking and Availability Management Tools for Drupal 8

Parameters

$event_type:

Return value

string|FALSE

2 calls to UnitType::getEventValueDefaultField()
UnitType::getEventDefaultValue in modules/bat_unit/src/Entity/UnitType.php
UnitType::getEventValueFormatter in modules/bat_unit/src/Entity/UnitType.php

File

modules/bat_unit/src/Entity/UnitType.php, line 278
Contains \Drupal\bat_unit\Entity\UnitType.

Class

UnitType
Defines the Unit type entity.

Namespace

Drupal\bat_unit\Entity

Code

public function getEventValueDefaultField($event_type) {
  $type_bundle = bat_type_bundle_load($this
    ->bundle());
  if (isset($type_bundle->default_event_value_field_ids[$event_type])) {
    return $type_bundle->default_event_value_field_ids[$event_type];
  }
  return FALSE;
}