static function Theme::canUpdateDirectory

Implements Drupal\Core\Updater\UpdaterInterface::canUpdateDirectory().

Overrides UpdaterInterface::canUpdateDirectory

File

drupal/core/lib/Drupal/Core/Updater/Theme.php, line 51
Definition of Drupal\Core\Updater\Theme.

Class

Theme
Defines a class for updating themes using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php.

Namespace

Drupal\Core\Updater

Code

static function canUpdateDirectory($directory) {

  // This is a lousy test, but don't know how else to confirm it is a theme.
  if (file_scan_directory($directory, '/.*\\.module$/')) {
    return FALSE;
  }
  return TRUE;
}