You are here

public function NodeExtension::getNodeTranslators in Zircon Profile 8

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

Returns node translators.

These callables will receive the node as first argument and the translator as second argument.

Return value

callable[]

Overrides AbstractExtension::getNodeTranslators

File

vendor/symfony/css-selector/XPath/Extension/NodeExtension.php, line 79

Class

NodeExtension
XPath expression translator node extension.

Namespace

Symfony\Component\CssSelector\XPath\Extension

Code

public function getNodeTranslators() {
  return array(
    'Selector' => array(
      $this,
      'translateSelector',
    ),
    'CombinedSelector' => array(
      $this,
      'translateCombinedSelector',
    ),
    'Negation' => array(
      $this,
      'translateNegation',
    ),
    'Function' => array(
      $this,
      'translateFunction',
    ),
    'Pseudo' => array(
      $this,
      'translatePseudo',
    ),
    'Attribute' => array(
      $this,
      'translateAttribute',
    ),
    'Class' => array(
      $this,
      'translateClass',
    ),
    'Hash' => array(
      $this,
      'translateHash',
    ),
    'Element' => array(
      $this,
      'translateElement',
    ),
  );
}