Same name and namespace in other branches
  1. 8.9.x core/modules/contact/src/Plugin/views/field/ContactLink.php \Drupal\contact\Plugin\views\field\ContactLink::getDefaultLabel()
  2. 9 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

\Drupal\Core\StringTranslation\TranslatableMarkup The default link label.

Overrides LinkBase::getDefaultLabel

1 call to ContactLink::getDefaultLabel()
ContactLink::buildOptionsForm in core/modules/contact/src/Plugin/views/field/ContactLink.php

File

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

Class

ContactLink

Namespace

Drupal\contact\Plugin\views\field

Code

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