Mercurial > hg > isophonics-drupal-site
view core/lib/Drupal/Core/Extension/InfoParser.php @ 11:bfffd8d7479a
Move drupal/core from "replace" to "require" section, to ensure Composer updates it
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:51:18 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\Core\Extension; /** * Parses extension .info.yml files. */ 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]; } }