class registration_handler_field_entity_capacity_total 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
- 8.2 modules/registration_views/includes/registration_handler_field_entity_capacity_total.inc \registration_handler_field_entity_capacity_total
- 8.2 modules/registration_views/src/registration_handler_field_entity_capacity_total.php \Drupal\registration_views\registration_handler_field_entity_capacity_total
Same name and namespace in other branches
- 8 src/registration_handler_field_entity_capacity_total.php \Drupal\registration\registration_handler_field_entity_capacity_total
@file Display maximum slots for an entity.
Hierarchy
- class \Drupal\registration\registration_handler_field_entity_capacity_total extends \Drupal\registration\views_handler_field
Expanded class hierarchy of registration_handler_field_entity_capacity_total
1 string reference to 'registration_handler_field_entity_capacity_total'
- registration_views_views_data in modules/
registration_views/ registration_views.module - Implements hook_views_data().
File
- src/
registration_handler_field_entity_capacity_total.php, line 8 - Display maximum slots for an entity.
Namespace
Drupal\registrationView source
class registration_handler_field_entity_capacity_total extends views_handler_field {
function render($values) {
$slots = $this
->get_value($values);
if (isset($slots)) {
if (!empty($slots)) {
return $slots;
}
else {
return t('Unlimited');
}
}
}
}