You are here

protected function FileDownloadLinkMedia::getTokenExampleMarkup in File Download Link 8

A helper function for the config form.

Return value

string An example of how to leverage token.

1 call to FileDownloadLinkMedia::getTokenExampleMarkup()
FileDownloadLinkMedia::settingsForm in modules/file_downoad_link_media/src/Plugin/Field/FieldFormatter/FileDownloadLinkMedia.php
Returns a form to configure settings for the formatter.

File

modules/file_downoad_link_media/src/Plugin/Field/FieldFormatter/FileDownloadLinkMedia.php, line 254

Class

FileDownloadLinkMedia
Plugin implementation of the 'file_download_link_media' formatter.

Namespace

Drupal\file_download_link_media\Plugin\Field\FieldFormatter

Code

protected function getTokenExampleMarkup() {
  return $this
    ->t('<p>You can show the media name followed by the file size like this:<code>@example</code></p>', [
    '@example' => $this
      ->getExampleToken(),
  ]);
}