You are here

public function Wiki::getIndicator in Freelinking 8.3

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

A regular expression string to indicate what to replace for this plugin.

Return value

string A regular expression string.

Overrides FreelinkingPluginInterface::getIndicator

1 call to Wiki::getIndicator()
Wiki::getWikiFromIndicator in src/Plugin/freelinking/Wiki.php
Get the wiki name from the indicator string.

File

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

Class

Wiki
Freelinking wiki plugin implements wikipedia amongst other plugins.

Namespace

Drupal\freelinking\Plugin\freelinking

Code

public function getIndicator() {
  return '/w((ikipedia|p)|(ikiquote|q)|(iktionary|t)|(ikinews|n)|(ikisource|s)|(ikibooks|b))?$/A';
}