You are here

protected function ContactLink::getDefaultLabel in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/contact/src/Plugin/views/field/ContactLink.php \Drupal\contact\Plugin\views\field\ContactLink::getDefaultLabel()

Returns the default label for this link.

Return value

string The default link label.

Overrides LinkBase::getDefaultLabel

1 call to ContactLink::getDefaultLabel()
ContactLink::buildOptionsForm in core/modules/contact/src/Plugin/views/field/ContactLink.php
Default options form that provides the label widget that all fields should have.

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');
}