Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PseudoClassExtension.php

function PseudoClassExtension::getPseudoClassTranslators

Overrides AbstractExtension::getPseudoClassTranslators

File

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

Class

PseudoClassExtension
XPath expression translator pseudo-class extension.

Namespace

Symfony\Component\CssSelector\XPath\Extension

Code

public function getPseudoClassTranslators() : array {
    return [
        'root' => $this->translateRoot(...),
        'scope' => $this->translateScopePseudo(...),
        'first-child' => $this->translateFirstChild(...),
        'last-child' => $this->translateLastChild(...),
        'first-of-type' => $this->translateFirstOfType(...),
        'last-of-type' => $this->translateLastOfType(...),
        'only-child' => $this->translateOnlyChild(...),
        'only-of-type' => $this->translateOnlyOfType(...),
        'empty' => $this->translateEmpty(...),
    ];
}
RSS feed
Powered by Drupal