You are here

protected function FileDownloadLinkMedia::getExampleToken in File Download Link 8

A helper function for the config form.

Return value

string An example link text with tokens.

2 calls to FileDownloadLinkMedia::getExampleToken()
FileDownloadLinkMedia::getTokenExampleMarkup in modules/file_downoad_link_media/src/Plugin/Field/FieldFormatter/FileDownloadLinkMedia.php
A helper function for the config form.
FileDownloadLinkMedia::getTokenWarningMarkup in modules/file_downoad_link_media/src/Plugin/Field/FieldFormatter/FileDownloadLinkMedia.php
A helper function for the config form.

File

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

Class

FileDownloadLinkMedia
Plugin implementation of the 'file_download_link_media' formatter.

Namespace

Drupal\file_download_link_media\Plugin\Field\FieldFormatter

Code

protected function getExampleToken() {
  return "[media:name] ([file:size])";
}