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

Breadcrumb

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

function Parser::parseSelectorParts

Parses a set of selector pats

Return value

array

Throws

Exception

1 call to Parser::parseSelectorParts()
Parser::parseSelector in vendor/mck89/peast/lib/Peast/Selector/Parser.php
Parses a selector

File

vendor/mck89/peast/lib/Peast/Selector/Parser.php, line 165

Class

Parser
Selector parser class

Namespace

Peast\Selector

Code

protected function parseSelectorParts() {
    $parts = array();
    while (true) {
        if (($part = $this->parseSelectorPartType()) || ($part = $this->parseSelectorPartAttribute()) || ($part = $this->parseSelectorPartPseudo())) {
            $parts[] = $part;
        }
        else {
            break;
        }
    }
    return $parts;
}

API Navigation

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