function registration_handler_field_entity_datetime::render in Entity Registration 8
Same name in this branch
- 8 src/registration_handler_field_entity_datetime.php \Drupal\registration\registration_handler_field_entity_datetime::render()
- 8 modules/registration_views/includes/registration_handler_field_entity_datetime.inc \registration_handler_field_entity_datetime::render()
Same name and namespace in other branches
- 8.2 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\registrationCode
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);
}
}
}