interface TranslatorInterface in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/translation/TranslatorInterface.php \Symfony\Component\Translation\TranslatorInterface
- 8 vendor/symfony/css-selector/XPath/TranslatorInterface.php \Symfony\Component\CssSelector\XPath\TranslatorInterface
- 8 core/lib/Drupal/Core/Validation/TranslatorInterface.php \Drupal\Core\Validation\TranslatorInterface
- 8 core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php \Drupal\Core\StringTranslation\Translator\TranslatorInterface
Same name and namespace in other branches
- 8.0 vendor/symfony/css-selector/XPath/TranslatorInterface.php \Symfony\Component\CssSelector\XPath\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>
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 24
Namespace
Symfony\Component\CssSelector\XPathView source
interface TranslatorInterface {
/**
* Translates a CSS selector to an XPath expression.
*
* @param string $cssExpr
* @param string $prefix
*
* @return string
*/
public function cssToXPath($cssExpr, $prefix = 'descendant-or-self::');
/**
* Translates a parsed selector node to an XPath expression.
*
* @param SelectorNode $selector
* @param string $prefix
*
* @return string
*/
public function selectorToXPath(SelectorNode $selector, $prefix = 'descendant-or-self::');
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TranslatorInterface:: |
public | function | Translates a CSS selector to an XPath expression. | 1 |
TranslatorInterface:: |
public | function | Translates a parsed selector node to an XPath expression. | 1 |