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

Breadcrumb

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

function ClassNode::getSpecificity

Overrides NodeInterface::getSpecificity

File

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

Class

ClassNode
Represents a "<selector>.<name>" node.

Namespace

Symfony\Component\CssSelector\Node

Code

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

API Navigation

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