You are here

public static function CodeFilter::processCodeCallback in Code Filter 8

Callback to replace content of the <code> elements.

Parameters

array $matches: An array of matches passed by preg_replace_callback().

Return value

string A formatted string.

File

src/Plugin/Filter/CodeFilter.php, line 107

Class

CodeFilter
Text filter for highlighting PHP source code.

Namespace

Drupal\codefilter\Plugin\Filter

Code

public static function processCodeCallback(array $matches) {
  return self::processCode($matches[1]);
}