You are here

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

Return value

string

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

File

src/Plugin/Field/FieldFormatter/FixedTextFileUrl.php, line 68

Class

FixedTextFileUrl
Plugin implementation of the 'file_url_plain' formatter.

Namespace

Drupal\fixed_text_link_formatter\Plugin\Field\FieldFormatter

Code

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