function registration_handler_field_registration_link::render_link in Entity Registration 8.2
Same name in this branch
- 8.2 src/registration_handler_field_registration_link.php \Drupal\registration\registration_handler_field_registration_link::render_link()
- 8.2 modules/registration_views/includes/registration_handler_field_registration_link.inc \registration_handler_field_registration_link::render_link()
- 8.2 modules/registration_views/src/registration_handler_field_registration_link.php \Drupal\registration_views\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/ src/ registration_handler_field_registration_link.php
3 methods override registration_handler_field_registration_link::render_link()
- registration_handler_field_entity_settings_link::render_link in modules/
registration_views/ src/ registration_handler_field_entity_settings_link.php - Renders the link.
- registration_handler_field_registration_link_delete::render_link in modules/
registration_views/ src/ registration_handler_field_registration_link_delete.php - Renders the link.
- registration_handler_field_registration_link_edit::render_link in modules/
registration_views/ src/ registration_handler_field_registration_link_edit.php - Renders the link.
File
- modules/
registration_views/ src/ registration_handler_field_registration_link.php, line 35 - 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.
Namespace
Drupal\registration_viewsCode
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;
}
}