public function UnitType::getEventValueFormatter in Booking and Availability Management Tools for Drupal 8
Parameters
$event_type:
Return value
string|FALSE
File
- modules/
bat_unit/ src/ Entity/ UnitType.php, line 261 - Contains \Drupal\bat_unit\Entity\UnitType.
Class
- UnitType
- Defines the Unit type entity.
Namespace
Drupal\bat_unit\EntityCode
public function getEventValueFormatter($event_type) {
if ($field = $this
->getEventValueDefaultField($event_type)) {
$field_info_instance = FieldConfig::loadByName('bat_unit_type', $this
->bundle(), $field);
if (isset($field_info_instance['display']['default']['type'])) {
return $field_info_instance['display']['default']['type'];
}
}
return FALSE;
}