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

Breadcrumb

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

interface ParserInterface

CSS selector parser 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\Parser\ParserInterface

Expanded class hierarchy of ParserInterface

All classes that implement ParserInterface

See also

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

5 files declare their use of ParserInterface
ClassParser.php in vendor/symfony/css-selector/Parser/Shortcut/ClassParser.php
ElementParser.php in vendor/symfony/css-selector/Parser/Shortcut/ElementParser.php
EmptyStringParser.php in vendor/symfony/css-selector/Parser/Shortcut/EmptyStringParser.php
HashParser.php in vendor/symfony/css-selector/Parser/Shortcut/HashParser.php
Translator.php in vendor/symfony/css-selector/XPath/Translator.php

File

vendor/symfony/css-selector/Parser/ParserInterface.php, line 26

Namespace

Symfony\Component\CssSelector\Parser
View source
interface ParserInterface {
    
    /**
     * Parses given selector source into an array of tokens.
     *
     * @return SelectorNode[]
     */
    public function parse(string $source) : array;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ParserInterface::parse public function Parses given selector source into an array of tokens. 5

API Navigation

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