You are here

function registration_handler_field_entity_capacity_total::render in Entity Registration 8.2

Same name in this branch
  1. 8.2 src/registration_handler_field_entity_capacity_total.php \Drupal\registration\registration_handler_field_entity_capacity_total::render()
  2. 8.2 modules/registration_views/includes/registration_handler_field_entity_capacity_total.inc \registration_handler_field_entity_capacity_total::render()
  3. 8.2 modules/registration_views/src/registration_handler_field_entity_capacity_total.php \Drupal\registration_views\registration_handler_field_entity_capacity_total::render()
Same name and namespace in other branches
  1. 8 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\registration

Code

function render($values) {
  $slots = $this
    ->get_value($values);
  if (isset($slots)) {
    if (!empty($slots)) {
      return $slots;
    }
    else {
      return t('Unlimited');
    }
  }
}