function registration_handler_field_entity_capacity_total::render in Entity Registration 8.2
Same name in this branch
- 8.2 src/registration_handler_field_entity_capacity_total.php \Drupal\registration\registration_handler_field_entity_capacity_total::render()
- 8.2 modules/registration_views/includes/registration_handler_field_entity_capacity_total.inc \registration_handler_field_entity_capacity_total::render()
- 8.2 modules/registration_views/src/registration_handler_field_entity_capacity_total.php \Drupal\registration_views\registration_handler_field_entity_capacity_total::render()
File
- modules/
registration_views/ src/ registration_handler_field_entity_capacity_total.php, line 9 - Display maximum slots for an entity.
Class
- registration_handler_field_entity_capacity_total
- @file Display maximum slots for an entity.
Namespace
Drupal\registration_viewsCode
function render($values) {
$slots = $this
->get_value($values);
if (isset($slots)) {
if (!empty($slots)) {
return $slots;
}
else {
return t('Unlimited');
}
}
}