function registration_handler_field_registration_link::render_link in Entity Registration 8
Same name in this branch
- 8 src/registration_handler_field_registration_link.php \Drupal\registration\registration_handler_field_registration_link::render_link()
- 8 modules/registration_views/includes/registration_handler_field_registration_link.inc \registration_handler_field_registration_link::render_link()
Same name and namespace in other branches
- 8.2 modules/registration_views/includes/registration_handler_field_registration_link.inc \registration_handler_field_registration_link::render_link()
- 7.2 modules/registration_views/includes/registration_handler_field_registration_link.inc \registration_handler_field_registration_link::render_link()
- 7 modules/registration_views/includes/registration_handler_field_registration_link.inc \registration_handler_field_registration_link::render_link()
1 call to registration_handler_field_registration_link::render_link()
- registration_handler_field_registration_link::render in modules/
registration_views/ includes/ registration_handler_field_registration_link.inc
3 methods override registration_handler_field_registration_link::render_link()
- registration_handler_field_entity_settings_link::render_link in modules/
registration_views/ includes/ registration_handler_field_entity_settings_link.inc - Renders the link.
- registration_handler_field_registration_link_delete::render_link in modules/
registration_views/ includes/ registration_handler_field_registration_link_delete.inc - Renders the link.
- registration_handler_field_registration_link_edit::render_link in modules/
registration_views/ includes/ registration_handler_field_registration_link_edit.inc - Renders the link.
File
- modules/
registration_views/ includes/ registration_handler_field_registration_link.inc, line 34 - Field handler to render a link to a registration.
Class
- registration_handler_field_registration_link
- @file Field handler to render a link to a registration.
Code
function render_link($entity, $values) {
if (entity_access('update', 'registration', $entity)) {
$this->options['alter']['make_link'] = TRUE;
$this->options['alter']['path'] = "registration/{$entity->registration_id}";
$text = !empty($this->options['text']) ? $this->options['text'] : t('view');
return $text;
}
}