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

Breadcrumb

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

function NegationNode::getSpecificity

Overrides NodeInterface::getSpecificity

File

vendor/symfony/css-selector/Node/NegationNode.php, line 42

Class

NegationNode
Represents a "<selector>:not(<identifier>)" node.

Namespace

Symfony\Component\CssSelector\Node

Code

public function getSpecificity() : Specificity {
    return $this->selector
        ->getSpecificity()
        ->plus($this->subSelector
        ->getSpecificity());
}

API Navigation

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