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

Breadcrumb

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

function ScopeHelper::getAllRootPointers

*

Return value

list<int>

1 call to ScopeHelper::getAllRootPointers()
ScopeHelper::getRootPointer in vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/ScopeHelper.php

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/ScopeHelper.php, line 56

Class

ScopeHelper
@internal

Namespace

SlevomatCodingStandard\Helpers

Code

public static function getAllRootPointers(File $phpcsFile) : array {
    $lazyValue = static function () use ($phpcsFile) : array {
        return TokenHelper::findNextAll($phpcsFile, T_OPEN_TAG, 0);
    };
    return SniffLocalCache::getAndSetIfNotCached($phpcsFile, 'openTagPointers', $lazyValue);
}

API Navigation

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