class registration_handler_field_entity_datetime in Entity Registration 8
Same name in this branch
- 8 src/registration_handler_field_entity_datetime.php \Drupal\registration\registration_handler_field_entity_datetime
- 8 modules/registration_views/includes/registration_handler_field_entity_datetime.inc \registration_handler_field_entity_datetime
Same name and namespace in other branches
- 8.2 src/registration_handler_field_entity_datetime.php \Drupal\registration\registration_handler_field_entity_datetime
@file Display registration open or closing dates.
Hierarchy
- class \Drupal\registration\registration_handler_field_entity_datetime extends \Drupal\registration\views_handler_field_date
Expanded class hierarchy of registration_handler_field_entity_datetime
1 string reference to 'registration_handler_field_entity_datetime'
- registration_views_views_data in modules/
registration_views/ registration_views.module - Implements hook_views_data().
File
- src/
registration_handler_field_entity_datetime.php, line 8 - Display registration open or closing dates.
Namespace
Drupal\registrationView source
class registration_handler_field_entity_datetime extends views_handler_field_date {
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);
}
}
}
}