contextual.views.inc

Same filename in other branches
  1. 9 core/modules/contextual/contextual.views.inc
  2. 10 core/modules/contextual/contextual.views.inc
  3. 11.x core/modules/contextual/contextual.views.inc

Provide views data for contextual.module.

File

core/modules/contextual/contextual.views.inc

View source
<?php


/**
 * @file
 * Provide views data for contextual.module.
 */

/**
 * Implements hook_views_data_alter().
 */
function contextual_views_data_alter(&$data) {
    $data['views']['contextual_links'] = [
        'title' => t('Contextual Links'),
        'help' => t('Display fields in a contextual links menu.'),
        'field' => [
            'id' => 'contextual_links',
        ],
    ];
}

Functions

Title Deprecated Summary
contextual_views_data_alter Implements hook_views_data_alter().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.