class ContextualViewsHooks

Hook implementations for contextual.

Hierarchy

Expanded class hierarchy of ContextualViewsHooks

File

core/modules/contextual/src/Hook/ContextualViewsHooks.php, line 10

Namespace

Drupal\contextual\Hook
View source
class ContextualViewsHooks {
    
    /**
     * @file
     * Provide views data for contextual.module.
     */
    
    /**
     * Implements hook_views_data_alter().
     */
    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',
            ],
        ];
    }

}

Members

Title Sort descending Modifiers Object type Summary
ContextualViewsHooks::viewsDataAlter public function Implements hook_views_data_alter().

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