You are here

private function FixedTextLink::getLinkText in Fixed text link formatter 8

Return value

mixed

3 calls to FixedTextLink::getLinkText()
FixedTextLink::settingsForm in src/Plugin/Field/FieldFormatter/FixedTextLink.php
Returns a form to configure settings for the formatter.
FixedTextLink::settingsSummary in src/Plugin/Field/FieldFormatter/FixedTextLink.php
Returns a short summary for the current formatter settings.
FixedTextLink::viewElements in src/Plugin/Field/FieldFormatter/FixedTextLink.php
Builds a renderable array for a field value.

File

src/Plugin/Field/FieldFormatter/FixedTextLink.php, line 116

Class

FixedTextLink
Plugin implementation of the 'link' formatter.

Namespace

Drupal\fixed_text_link_formatter\Plugin\Field\FieldFormatter

Code

private function getLinkText() {
  return $this
    ->getSettings()['link_text'];
}