Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LinkBase.php

function LinkBase::getDefaultLabel

Returns the default label for this link.

Return value

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

2 calls to LinkBase::getDefaultLabel()
LinkBase::defineOptions in core/modules/views/src/Plugin/views/field/LinkBase.php
Information about options for all kinds of purposes will be held here.
LinkBase::renderLink in core/modules/views/src/Plugin/views/field/LinkBase.php
Prepares the link to view an entity.
5 methods override LinkBase::getDefaultLabel()
ContactLink::getDefaultLabel in core/modules/contact/src/Plugin/views/field/ContactLink.php
Returns the default label for this link.
EntityLink::getDefaultLabel in core/modules/views/src/Plugin/views/field/EntityLink.php
Returns the default label for this link.
LinkApprove::getDefaultLabel in core/modules/comment/src/Plugin/views/field/LinkApprove.php
Returns the default label for this link.
LinkReply::getDefaultLabel in core/modules/comment/src/Plugin/views/field/LinkReply.php
Returns the default label for this link.
RevisionLink::getDefaultLabel in core/modules/node/src/Plugin/views/field/RevisionLink.php
Returns the default label for this link.

File

core/modules/views/src/Plugin/views/field/LinkBase.php, line 237

Class

LinkBase
Field handler to present a link to an entity.

Namespace

Drupal\views\Plugin\views\field

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal