class InfoParser in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Extension/InfoParser.php \Drupal\Core\Extension\InfoParser
Parses extension .info.yml files.
Hierarchy
- class \Drupal\Core\Extension\InfoParserDynamic implements InfoParserInterface
- class \Drupal\Core\Extension\InfoParser
Expanded class hierarchy of InfoParser
2 files declare their use of InfoParser
- InfoParserUnitTest.php in core/
tests/ Drupal/ Tests/ Core/ Extension/ InfoParserUnitTest.php - Contains \Drupal\Tests\Core\Extension\InfoParserUnitTest.
- ThemeHandlerTest.php in core/
tests/ Drupal/ Tests/ Core/ Extension/ ThemeHandlerTest.php - Contains \Drupal\Tests\Core\Extension\ThemeHandlerTest.
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 13 - Contains \Drupal\Core\Extension\InfoParser.
Namespace
Drupal\Core\ExtensionView source
class InfoParser extends InfoParserDynamic {
/**
* Array of all info keyed by filename.
*
* @var array
*/
protected static $parsedInfos = array();
/**
* {@inheritdoc}
*/
public function parse($filename) {
if (!isset(static::$parsedInfos[$filename])) {
static::$parsedInfos[$filename] = parent::parse($filename);
}
return static::$parsedInfos[$filename];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InfoParser:: |
protected static | property | Array of all info keyed by filename. | |
InfoParser:: |
public | function |
Parses Drupal module, theme and profile .info.yml files. Overrides InfoParserDynamic:: |
|
InfoParserDynamic:: |
protected | function | Returns an array of keys required to exist in .info.yml file. |