class InfoParser
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/InfoParser.php \Drupal\Core\Extension\InfoParser
- 10 core/lib/Drupal/Core/Extension/InfoParser.php \Drupal\Core\Extension\InfoParser
- 11.x core/lib/Drupal/Core/Extension/InfoParser.php \Drupal\Core\Extension\InfoParser
Parses extension .info.yml files.
Hierarchy
- class \Drupal\Core\Extension\InfoParserDynamic implements \Drupal\Core\Extension\InfoParserInterface
- class \Drupal\Core\Extension\InfoParser extends \Drupal\Core\Extension\InfoParserDynamic
Expanded class hierarchy of InfoParser
3 files declare their use of InfoParser
- BaseThemeDefaultDeprecationTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Theme/ BaseThemeDefaultDeprecationTest.php - InfoParserUnitTest.php in core/
tests/ Drupal/ Tests/ Core/ Extension/ InfoParserUnitTest.php - ThemeExtensionListTest.php in core/
tests/ Drupal/ Tests/ Core/ Extension/ ThemeExtensionListTest.php
1 string reference to 'InfoParser'
- core.services.yml in core/
core.services.yml - core/core.services.yml
1 service uses InfoParser
File
-
core/
lib/ Drupal/ Core/ Extension/ InfoParser.php, line 8
Namespace
Drupal\Core\ExtensionView source
class InfoParser extends InfoParserDynamic {
/**
* Array of all info keyed by filename.
*
* @var array
*/
protected static $parsedInfos = [];
/**
* {@inheritdoc}
*/
public function parse($filename) {
if (!isset(static::$parsedInfos[$filename])) {
static::$parsedInfos[$filename] = parent::parse($filename);
}
return static::$parsedInfos[$filename];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
InfoParser::$parsedInfos | protected static | property | Array of all info keyed by filename. | ||
InfoParser::parse | public | function | Parses Drupal module, theme and profile .info.yml files. | Overrides InfoParserDynamic::parse | 1 |
InfoParserDynamic::$root | protected | property | The root directory of the Drupal installation. | ||
InfoParserDynamic::FIRST_CORE_VERSION_REQUIREMENT_SUPPORTED_VERSION | constant | The earliest Drupal version that supports the 'core_version_requirement'. | |||
InfoParserDynamic::getAllPreviousCoreVersions | protected static | function | Gets all the versions of Drupal 8 before a specific version. | ||
InfoParserDynamic::getRequiredKeys | protected | function | Returns an array of keys required to exist in .info.yml file. | ||
InfoParserDynamic::isConstraintSatisfiedByPreviousVersion | protected static | function | Determines if a constraint is satisfied by earlier versions of Drupal 8. | ||
InfoParserDynamic::__construct | public | function | InfoParserDynamic constructor. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.