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

Breadcrumb

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

interface TranslatorInterface

Same name in this branch
  1. 11.1.x vendor/php-tuf/composer-stager/src/API/Translation/Service/TranslatorInterface.php \PhpTuf\ComposerStager\API\Translation\Service\TranslatorInterface
  2. 11.1.x vendor/symfony/translation-contracts/TranslatorInterface.php \Symfony\Contracts\Translation\TranslatorInterface
  3. 11.1.x core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php \Drupal\Core\StringTranslation\Translator\TranslatorInterface
  4. 11.1.x core/lib/Drupal/Core/Validation/TranslatorInterface.php \Drupal\Core\Validation\TranslatorInterface

XPath expression translator interface.

This component is a port of the Python cssselect library, which is copyright Ian Bicking, @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>

@internal

Hierarchy

  • interface \Symfony\Component\CssSelector\XPath\TranslatorInterface

Expanded class hierarchy of TranslatorInterface

All classes that implement TranslatorInterface

See also

https://github.com/SimonSapin/cssselect.

File

vendor/symfony/css-selector/XPath/TranslatorInterface.php, line 26

Namespace

Symfony\Component\CssSelector\XPath
View source
interface TranslatorInterface {
    
    /**
     * Translates a CSS selector to an XPath expression.
     */
    public function cssToXPath(string $cssExpr, string $prefix = 'descendant-or-self::') : string;
    
    /**
     * Translates a parsed selector node to an XPath expression.
     */
    public function selectorToXPath(SelectorNode $selector, string $prefix = 'descendant-or-self::') : string;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
TranslatorInterface::cssToXPath public function Translates a CSS selector to an XPath expression. 1
TranslatorInterface::selectorToXPath public function Translates a parsed selector node to an XPath expression. 1

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal