You are here

public function PseudoClassExtension::getPseudoClassTranslators in Zircon Profile 8.0

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

Returns pseudo-class translators.

Return value

callable[]

Overrides AbstractExtension::getPseudoClassTranslators

File

vendor/symfony/css-selector/XPath/Extension/PseudoClassExtension.php, line 30

Class

PseudoClassExtension
XPath expression translator pseudo-class extension.

Namespace

Symfony\Component\CssSelector\XPath\Extension

Code

public function getPseudoClassTranslators() {
  return array(
    'root' => array(
      $this,
      'translateRoot',
    ),
    'first-child' => array(
      $this,
      'translateFirstChild',
    ),
    'last-child' => array(
      $this,
      'translateLastChild',
    ),
    'first-of-type' => array(
      $this,
      'translateFirstOfType',
    ),
    'last-of-type' => array(
      $this,
      'translateLastOfType',
    ),
    'only-child' => array(
      $this,
      'translateOnlyChild',
    ),
    'only-of-type' => array(
      $this,
      'translateOnlyOfType',
    ),
    'empty' => array(
      $this,
      'translateEmpty',
    ),
  );
}