You are here

interface TokenReplacerInterface in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/Token/TokenReplacerInterface.php \Drupal\forena\Token\TokenReplacerInterface

Hierarchy

Expanded class hierarchy of TokenReplacerInterface

All classes that implement TokenReplacerInterface

File

src/Token/TokenReplacerInterface.php, line 12

Namespace

Drupal\forena\Token
View source
interface TokenReplacerInterface {

  /**
   * @param $text
   * @param bool $raw Raw=true skips the translation/formatting steps.
   * @return mixed
   * The replacer method replaces text.
   */
  public function replace($text, $raw = FALSE);

  /**
   * @param $text
   * @return mixed
   * Return the tokens contained in the text.
   */
  public function tokens($text);

  /**
   * @param $condition
   * @return mixed
   * Provides test replacement that lets us test whether an expression is true or false.
   */
  public function test($condition);

}

Members