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

Breadcrumb

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

function ElementNode::getSpecificity

Overrides NodeInterface::getSpecificity

File

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

Class

ElementNode
Represents a "<namespace>|<element>" node.

Namespace

Symfony\Component\CssSelector\Node

Code

public function getSpecificity() : Specificity {
    return new Specificity(0, 0, $this->element ? 1 : 0);
}

API Navigation

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