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

Breadcrumb

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

class Group

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Framework/Attributes/Group.php \PHPUnit\Framework\Attributes\Group
  2. 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Value/Group.php \PHPUnit\TextUI\Configuration\Group
  3. 11.1.x vendor/phpunit/phpunit/src/Metadata/Group.php \PHPUnit\Metadata\Group

Selector group class

@author Marco Marchiò <marco.mm89@gmail.com>

Hierarchy

  • class \Peast\Selector\Node\Group

Expanded class hierarchy of Group

44 string references to 'Group'
AnnotationParser::forClass in vendor/phpunit/phpunit/src/Metadata/Parser/AnnotationParser.php
@psalm-param class-string $className
AnnotationParser::forMethod in vendor/phpunit/phpunit/src/Metadata/Parser/AnnotationParser.php
@psalm-param class-string $className @psalm-param non-empty-string $methodName
claro_form_alter in core/themes/claro/claro.theme
Implements hook_form_alter().
FieldPluginBase::addAdditionalFields in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Add 'additional' fields to the query.
FieldPluginBase::clickSort in core/modules/views/src/Plugin/views/field/FieldPluginBase.php
Adds an ORDER BY clause to the query for click sort columns.

... See full list

File

vendor/mck89/peast/lib/Peast/Selector/Node/Group.php, line 19

Namespace

Peast\Selector\Node
View source
class Group {
    
    /**
     * Selector combinators
     *
     * @var Combinator[]
     */
    protected $combinators = array();
    
    /**
     * Adds a combinator
     *
     * @param Combinator $combinators Combinator
     *
     * @return $this
     */
    public function addCombinator(Combinator $combinators) {
        $this->combinators[] = $combinators;
        return $this;
    }
    
    /**
     * Executes the current group on the given matches
     *
     * @param Matches $matches Matches
     */
    public function exec(Matches $matches) {
        foreach ($this->combinators as $combinator) {
            $combinator->exec($matches);
        }
    }

}

Members

Title Sort descending Modifiers Object type Summary
Group::$combinators protected property Selector combinators
Group::addCombinator public function Adds a combinator
Group::exec public function Executes the current group on the given matches

API Navigation

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