1 backup.config.inc protected BackupConfig::getConfigType()

Get the type of config being backed-up or restored.

Return value

string|false: Either "active", "staging", or FALSE.

File

core/includes/backup/backup.config.inc, line 84
Contains the Backup base class.

Class

BackupConfig
Base class for creating backups.

Code

protected function getConfigType() {
  $target = $this->getTarget();
  if ($target != 'config:active' && $target != 'config:staging') {
    return FALSE;
  }
  list(, $config_type) = explode(':', $target);
  return $config_type;
}