You are here

public function Wiki::getTip in Freelinking 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/freelinking/Wiki.php \Drupal\freelinking\Plugin\freelinking\Wiki::getTip()

Provides tips for this freelinking plugin.

Tips are displayed as part of the freelinking filter plugin.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup Translatable markup.

Overrides FreelinkingPluginInterface::getTip

1 call to Wiki::getTip()
Wiki::buildLink in src/Plugin/freelinking/Wiki.php
Build a link with the plugin.

File

src/Plugin/freelinking/Wiki.php, line 38

Class

Wiki
Freelinking wiki plugin implements wikipedia amongst other plugins.

Namespace

Drupal\freelinking\Plugin\freelinking

Code

public function getTip() {

  // @todo Decide to split into multiple plugins for Wikipedia/Wikiquote here.
  return $this
    ->t('Click to view a wiki page.');
}