class ContactViewsHooks
Hook implementations for contact.
Hierarchy
- class \Drupal\contact\Hook\ContactViewsHooks
Expanded class hierarchy of ContactViewsHooks
File
-
core/
modules/ contact/ src/ Hook/ ContactViewsHooks.php, line 10
Namespace
Drupal\contact\HookView source
class ContactViewsHooks {
/**
* @file
* Provide views data for contact.module.
*/
/**
* Implements hook_views_data_alter().
*/
public function viewsDataAlter(&$data) : void {
$data['users']['contact'] = [
'field' => [
'title' => t('Contact link'),
'help' => t('Provide a simple link to the user contact page.'),
'id' => 'contact_link',
],
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ContactViewsHooks::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.