On this page
protected function ExtensionDiscovery::getInfoParser
protected ExtensionDiscovery::getInfoParser()
Returns a parser for .info.yml files.
Return value
\Drupal\Core\Extension\InfoParser The InfoParser instance.
File
- core/lib/Drupal/Core/Extension/ExtensionDiscovery.php, line 506
Class
- ExtensionDiscovery
- Discovers available extensions in the filesystem.
Namespace
Drupal\Core\ExtensionCode
protected function getInfoParser() {
if (!isset($this->infoParser)) {
$this->infoParser = new InfoParser();
}
return $this->infoParser;
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Extension!ExtensionDiscovery.php/function/ExtensionDiscovery::getInfoParser/8.1.x