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

Breadcrumb

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

function FunctionExtension::getFunctionTranslators

Overrides AbstractExtension::getFunctionTranslators

File

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

Class

FunctionExtension
XPath expression translator function extension.

Namespace

Symfony\Component\CssSelector\XPath\Extension

Code

public function getFunctionTranslators() : array {
    return [
        'nth-child' => $this->translateNthChild(...),
        'nth-last-child' => $this->translateNthLastChild(...),
        'nth-of-type' => $this->translateNthOfType(...),
        'nth-last-of-type' => $this->translateNthLastOfType(...),
        'contains' => $this->translateContains(...),
        'lang' => $this->translateLang(...),
    ];
}
RSS feed
Powered by Drupal