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

Breadcrumb

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

class Part

Selector part base class

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

@abstract

Hierarchy

  • class \Peast\Selector\Node\Part\Part

Expanded class hierarchy of Part

File

vendor/mck89/peast/lib/Peast/Selector/Node/Part/Part.php, line 21

Namespace

Peast\Selector\Node\Part
View source
abstract class Part {
    
    /**
     * Priority
     *
     * @var int
     */
    protected $priority = 5;
    public function getPriority() {
        return $this->priority;
    }
    
    /**
     * Returns true if the selector part matches the given node,
     * false otherwise
     *
     * @param Node $node    Node
     * @param Node $parent  Parent node
     *
     * @return bool
     *
     * @abstract
     */
    public abstract function check(Node $node, $parent = null);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
Part::$priority protected property Priority 4
Part::check abstract public function Returns true if the selector part matches the given node,
false otherwise
5
Part::getPriority public function

API Navigation

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