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\Updater
Code
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; }
Please login to continue.