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

Breadcrumb

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

function Reader::getOffset

File

vendor/symfony/css-selector/Parser/Reader.php, line 55

Class

Reader
CSS selector reader.

Namespace

Symfony\Component\CssSelector\Parser

Code

public function getOffset(string $string) : int|false {
    $position = strpos($this->source, $string, $this->position);
    return false === $position ? false : $position - $this->position;
}

API Navigation

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