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 src/registration_handler_field_entity_capacity_total.php \Drupal\registration\registration_handler_field_entity_capacity_total::render()
File
- 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\registrationCode
function render($values) {
$slots = $this
->get_value($values);
if (isset($slots)) {
if (!empty($slots)) {
return $slots;
}
else {
return t('Unlimited');
}
}
}