function contextual_views_data_alter in Drupal 10
Same name and namespace in other branches
- 8 core/modules/contextual/contextual.views.inc \contextual_views_data_alter()
- 9 core/modules/contextual/contextual.views.inc \contextual_views_data_alter()
Implements hook_views_data_alter().
File
- core/
modules/ contextual/ contextual.views.inc, line 11 - Provide views data for contextual.module.
Code
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',
],
];
}