You are here

protected function ExtensionDiscovery::getInfoParser in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Extension/ExtensionDiscovery.php \Drupal\Core\Extension\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 499
Contains \Drupal\Core\Extension\ExtensionDiscovery.

Class

ExtensionDiscovery
Discovers available extensions in the filesystem.

Namespace

Drupal\Core\Extension

Code

protected function getInfoParser() {
  if (!isset($this->infoParser)) {
    $this->infoParser = new InfoParser();
  }
  return $this->infoParser;
}