public static Module::canUpdateDirectory($directory)
Determines if the Updater can handle the project provided in $directory.
string $directory:
bool TRUE if the project is installed, FALSE if not.
Overrides UpdaterInterface::canUpdateDirectory
public static function canUpdateDirectory($directory) { $info = static::getExtensionInfo($directory); return (isset($info['type']) && $info['type'] == 'module'); }
© 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!Module.php/function/Module::canUpdateDirectory/8.1.x