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

Breadcrumb

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

function ScopeManager::getScopeForScopeStart

* Return the scope for a scope start index. * *

Parameters

string $filename: * @param int $scopeStartIndex * * @return ScopeInfo|null

File

vendor/sirbrillig/phpcs-variable-analysis/VariableAnalysis/Lib/ScopeManager.php, line 66

Class

ScopeManager

Namespace

VariableAnalysis\Lib

Code

public function getScopeForScopeStart($filename, $scopeStartIndex) {
    if (empty($this->scopes[$filename][$scopeStartIndex])) {
        return null;
    }
    return $this->scopes[$filename][$scopeStartIndex];
}

API Navigation

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