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