protected static function Updater::getExtensionInfo
protected static Updater::getExtensionInfo($directory)
Get Extension information from directory.
Parameters
string $directory: Directory to search in.
Return value
array Extension info.
Throws
\Drupal\Core\Updater\UpdaterException If the info parser does not provide any info.
File
- core/lib/Drupal/Core/Updater/Updater.php, line 137
Class
- Updater
- Defines the base class for Updaters used in Drupal.
Namespace
Drupal\Core\UpdaterCode
protected static function getExtensionInfo($directory) { $info_file = static::findInfoFile($directory); $info = \Drupal::service('info_parser')->parse($info_file); if (empty($info)) { throw new UpdaterException(t('Unable to parse info file: %info_file.', ['%info_file' => $info_file])); } return $info; }
© 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!Updater!Updater.php/function/Updater::getExtensionInfo/8.1.x