function ContactLink::getDefaultLabel

Same name and namespace in other branches
  1. 11.x core/modules/contact/src/Plugin/views/field/ContactLink.php \Drupal\contact\Plugin\views\field\ContactLink::getDefaultLabel()
  2. 10 core/modules/contact/src/Plugin/views/field/ContactLink.php \Drupal\contact\Plugin\views\field\ContactLink::getDefaultLabel()
  3. 8.9.x core/modules/contact/src/Plugin/views/field/ContactLink.php \Drupal\contact\Plugin\views\field\ContactLink::getDefaultLabel()

File

core/modules/contact/src/Plugin/views/field/ContactLink.php, line 59

Class

ContactLink
Defines a field that links to the user contact page, if access is permitted.

Namespace

Drupal\contact\Plugin\views\field

Code

protected function getDefaultLabel() {
  return $this->t('contact');
}

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