You are here

interface TranslatorInterface in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/translation/TranslatorInterface.php \Symfony\Component\Translation\TranslatorInterface
  2. 8.0 vendor/symfony/css-selector/XPath/TranslatorInterface.php \Symfony\Component\CssSelector\XPath\TranslatorInterface
  3. 8.0 core/lib/Drupal/Core/Validation/TranslatorInterface.php \Drupal\Core\Validation\TranslatorInterface
  4. 8.0 core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php \Drupal\Core\StringTranslation\Translator\TranslatorInterface
Same name and namespace in other branches
  1. 8 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

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\XPath
View 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

Namesort descending Modifiers Type Description 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