You are here

class registration_handler_field_entity_capacity_total 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
  2. 8.2 modules/registration_views/includes/registration_handler_field_entity_capacity_total.inc \registration_handler_field_entity_capacity_total
  3. 8.2 modules/registration_views/src/registration_handler_field_entity_capacity_total.php \Drupal\registration_views\registration_handler_field_entity_capacity_total

@file Display maximum slots for an entity.

Hierarchy

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

modules/registration_views/src/registration_handler_field_entity_capacity_total.php, line 8
Display maximum slots for an entity.

Namespace

Drupal\registration_views
View 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');
      }
    }
  }

}

Members