registration_handler_field_entity_capacity_total.php in Entity Registration 8.2
Same filename in this branch
Same filename and directory in other branches
Display maximum slots for an entity.
Namespace
Drupal\registrationFile
src/registration_handler_field_entity_capacity_total.phpView source
<?php
namespace Drupal\registration;
/**
* @file
* Display maximum slots for an entity.
*/
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');
}
}
}
}
Classes
Name | Description |
---|---|
registration_handler_field_entity_capacity_total | @file Display maximum slots for an entity. |