You are here

protected function ContactLink::getDefaultLabel in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 64
Contains \Drupal\contact\Plugin\views\field\ContactLink.

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