Drupal investigation

contextual.views.inc 371B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * @file
  4. * Provide views data for contextual.module.
  5. */
  6. /**
  7. * Implements hook_views_data_alter().
  8. */
  9. function contextual_views_data_alter(&$data) {
  10. $data['views']['contextual_links'] = [
  11. 'title' => t('Contextual Links'),
  12. 'help' => t('Display fields in a contextual links menu.'),
  13. 'field' => [
  14. 'id' => 'contextual_links',
  15. ],
  16. ];
  17. }