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

Breadcrumb

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

function Standard::encapsedContainsEndLabel

Parameters

(Expr|Node\InterpolatedStringPart)[] $parts :

1 call to Standard::encapsedContainsEndLabel()
Standard::pScalar_InterpolatedString in vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php

File

vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php, line 1118

Class

Standard

Namespace

PhpParser\PrettyPrinter

Code

protected function encapsedContainsEndLabel(array $parts, string $label) : bool {
    foreach ($parts as $i => $part) {
        if ($part instanceof Node\InterpolatedStringPart && $this->containsEndLabel($this->escapeString($part->value, null), $label, $i === 0)) {
            return true;
        }
    }
    return false;
}

API Navigation

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