interface TranslatorInterface
Same name in this branch
- 11.1.x vendor/php-tuf/composer-stager/src/API/Translation/Service/TranslatorInterface.php \PhpTuf\ComposerStager\API\Translation\Service\TranslatorInterface
- 11.1.x vendor/symfony/translation-contracts/TranslatorInterface.php \Symfony\Contracts\Translation\TranslatorInterface
- 11.1.x core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php \Drupal\Core\StringTranslation\Translator\TranslatorInterface
- 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\XPathView 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 |