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 512

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;
}
doc_Drupal
2016-10-29 09:09:41
Comments
Leave a Comment

Please login to continue.