function ContextualViewsHooks::viewsDataAlter
Implements hook_views_data_alter().
File
-
core/
modules/ contextual/ src/ Hook/ ContextualViewsHooks.php, line 19
Class
- ContextualViewsHooks
- Hook implementations for contextual.
Namespace
Drupal\contextual\HookCode
public function viewsDataAlter(&$data) {
$data['views']['contextual_links'] = [
'title' => t('Contextual Links'),
'help' => t('Display fields in a contextual links menu.'),
'field' => [
'id' => 'contextual_links',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.