public function setDrupalUuid($localhost = false)
    {
        if ($this->getProjectVersion() >= 8) {
            $build_info = $this->getProjectOptionByKey('build_info');

            if ($build_info !== false
                && isset($build_info['uuid'])
                && !empty($build_info['uuid'])) {
                $drush = new DrushCommand(null, $localhost);
                $drush
                    ->command("cset system.site uuid {$build_info['uuid']}")
                    ->command('ev \'\Drupal::entityManager()->getStorage("shortcut_set")->load("default")->delete();\'');

                $this->runDrushCommand($drush, false, $localhost);
            }
        }

        return $this;
    }
public function setDrupalUuid($localhost = false)
    {
        if ($this->getProjectVersion() >= 8) {
            $build_info = $this->getProjectOptionByKey('build_info');

            if ($build_info !== false
                && isset($build_info['uuid'])
                && !empty($build_info['uuid'])) {
                $drush = new DrushCommand(null, $localhost);
                $drush
                    ->command("cset system.site uuid {$build_info['uuid']}")
                    ->command('ev \'\Drupal::entityManager()->getStorage("shortcut_set")->load("default")->delete();\'');

                $this->runDrushCommand($drush, false, $localhost);
            }
        }

        return $this;
    }
public function setDrupalUuid ( $ localhost = false ) { if ( $ this -> getProjectVersion ( ) >= 8 ) { $ build_info = $ this -> getProjectOptionByKey ( 'build_info' ) ; if ( $ build_info !== false && isset ( $ build_info [ 'uuid' ] ) && ! empty ( $ build_info [ 'uuid' ] ) ) { $ drush = new DrushCommand ( null , $ localhost ) ; $ drush -> command ( "cset system.site uuid {$build_info['uuid']}" ) -> command ( 'ev \'\Drupal::entityManager()->getStorage("shortcut_set")->load("default")->delete();\'' ) ; $ this -> runDrushCommand ( $ drush , false , $ localhost ) ; } } return $ this ; }
Set Drupal UUID.

@param bool $localhost
Determine if the drush command should be ran on the host.

@return $this
@throws \Exception
Set Drupal UUID .