You are here

function registration_handler_field_entity_datetime::render in Entity Registration 8.2

Same name in this branch
  1. 8.2 src/registration_handler_field_entity_datetime.php \Drupal\registration\registration_handler_field_entity_datetime::render()
  2. 8.2 modules/registration_views/includes/registration_handler_field_entity_datetime.inc \registration_handler_field_entity_datetime::render()
  3. 8.2 modules/registration_views/src/registration_handler_field_entity_datetime.php \Drupal\registration_views\registration_handler_field_entity_datetime::render()
Same name and namespace in other branches
  1. 8 src/registration_handler_field_entity_datetime.php \Drupal\registration\registration_handler_field_entity_datetime::render()

File

src/registration_handler_field_entity_datetime.php, line 9
Display registration open or closing dates.

Class

registration_handler_field_entity_datetime
@file Display registration open or closing dates.

Namespace

Drupal\registration

Code

function render($values) {
  $alias = isset($field) ? $this->aliases[$field] : $this->field_alias;
  if (isset($values->{$alias})) {
    $values->{$alias} = strtotime($values->{$alias});
    if ($values->{$alias} !== FALSE) {
      return parent::render($values);
    }
  }
}