You are here

public function gdpr_tasks_handler_operations_field::render in General Data Protection Regulation 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

modules/gdpr_tasks/views/handlers/gdpr_tasks_handler_operations_field.inc, line 33
Operations handler for gdpr tasks.

Class

gdpr_tasks_handler_operations_field
This field handler aggregates operations that can be done on a model.

Code

public function render($values) {
  $links = menu_contextual_links('model', 'admin/structure/gdpr-tasks', array(
    $this
      ->get_value($values, 'id'),
  ));
  if (!empty($links)) {
    return theme('links', array(
      'links' => $links,
      'attributes' => array(
        'class' => array(
          'links',
          'inline',
          'operations',
        ),
      ),
    ));
  }
}