You are here

public static function CodeFilter::processPHPCallback in Code Filter 8

Callback to replace content of the <?php ?> 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 120

Class

CodeFilter
Text filter for highlighting PHP source code.

Namespace

Drupal\codefilter\Plugin\Filter

Code

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