You are here

public function FunctionExtension::getFunctionTranslators in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/XPath/Extension/FunctionExtension.php \Symfony\Component\CssSelector\XPath\Extension\FunctionExtension::getFunctionTranslators()

Returns function translators.

Return value

callable[]

Overrides AbstractExtension::getFunctionTranslators

File

vendor/symfony/css-selector/XPath/Extension/FunctionExtension.php, line 34

Class

FunctionExtension
XPath expression translator function extension.

Namespace

Symfony\Component\CssSelector\XPath\Extension

Code

public function getFunctionTranslators() {
  return array(
    'nth-child' => array(
      $this,
      'translateNthChild',
    ),
    'nth-last-child' => array(
      $this,
      'translateNthLastChild',
    ),
    'nth-of-type' => array(
      $this,
      'translateNthOfType',
    ),
    'nth-last-of-type' => array(
      $this,
      'translateNthLastOfType',
    ),
    'contains' => array(
      $this,
      'translateContains',
    ),
    'lang' => array(
      $this,
      'translateLang',
    ),
  );
}