1 system.updater.inc public static LayoutUpdater::canUpdateDirectory($directory)

Determine if the Updater can handle the project provided in $directory.

Parameters

string $directory: The full path to the package directory.

Return value

bool: TRUE if the project within the directory is supported by this updater.

Overrides BackdropUpdaterInterface::canUpdateDirectory

File

core/modules/system/system.updater.inc, line 214
Subclasses of the Updater class to update Backdrop core, modules, themes, and layouts.

Class

LayoutUpdater
Class for updating layouts using FileTransfer classes via authorize.php.

Code

public static function canUpdateDirectory($directory) {
  return (self::getProjectType($directory) == 'layout');
}