You are here

public function CombinationExtension::getCombinationTranslators in Zircon Profile 8

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

Returns combination translators.

Return value

callable[]

Overrides AbstractExtension::getCombinationTranslators

File

vendor/symfony/css-selector/XPath/Extension/CombinationExtension.php, line 29

Class

CombinationExtension
XPath expression translator combination extension.

Namespace

Symfony\Component\CssSelector\XPath\Extension

Code

public function getCombinationTranslators() {
  return array(
    ' ' => array(
      $this,
      'translateDescendant',
    ),
    '>' => array(
      $this,
      'translateChild',
    ),
    '+' => array(
      $this,
      'translateDirectAdjacent',
    ),
    '~' => array(
      $this,
      'translateIndirectAdjacent',
    ),
  );
}