function InfoParser::parse

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Extension/InfoParser.php \Drupal\Core\Extension\InfoParser::parse()
  2. 10 core/lib/Drupal/Core/Extension/InfoParser.php \Drupal\Core\Extension\InfoParser::parse()
  3. 11.x core/lib/Drupal/Core/Extension/InfoParser.php \Drupal\Core\Extension\InfoParser::parse()

Overrides InfoParserDynamic::parse

1 call to InfoParser::parse()
VfsInfoParser::parse in core/tests/Drupal/KernelTests/Core/Theme/BaseThemeDefaultDeprecationTest.php
Parses Drupal module, theme and profile .info.yml files.
1 method overrides InfoParser::parse()
VfsInfoParser::parse in core/tests/Drupal/KernelTests/Core/Theme/BaseThemeDefaultDeprecationTest.php
Parses Drupal module, theme and profile .info.yml files.

File

core/lib/Drupal/Core/Extension/InfoParser.php, line 20

Class

InfoParser
Parses extension .info.yml files.

Namespace

Drupal\Core\Extension

Code

public function parse($filename) {
    if (!isset(static::$parsedInfos[$filename])) {
        static::$parsedInfos[$filename] = parent::parse($filename);
    }
    return static::$parsedInfos[$filename];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.