You are here

registration_handler_field_entity_capacity_total.php in Entity Registration 8.2

Display maximum slots for an entity.

File

src/registration_handler_field_entity_capacity_total.php
View 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

Namesort descending Description
registration_handler_field_entity_capacity_total @file Display maximum slots for an entity.