src/Robo/Hooks/ValidateHook.php
public function validateSettingsFileIsValid(CommandData $commandData) {
    if (!$this->getInspector()->isDrupalSettingsFilePresent()) {
      throw new BltException("Could not find settings.php for this site.");
    }

    if (!$this->getInspector()->isDrupalSettingsFileValid()) {
      throw new BltException("BLT settings are not included in settings file.");
    }
  }
public function validateSettingsFileIsValid(CommandData $commandData) {
    if (!$this->getInspector()->isDrupalSettingsFilePresent()) {
      throw new BltException("Could not find settings.php for this site.");
    }

    if (!$this->getInspector()->isDrupalSettingsFileValid()) {
      throw new BltException("BLT settings are not included in settings file.");
    }
  }
public function validateSettingsFileIsValid ( CommandData $ commandData ) { if ( ! $ this -> getInspector ( ) -> isDrupalSettingsFilePresent ( ) ) { throw new BltException ( "Could not find settings.php for this site." ) ; } if ( ! $ this -> getInspector ( ) -> isDrupalSettingsFileValid ( ) ) { throw new BltException ( "BLT settings are not included in settings file." ) ; } }
Checks active settings.php file.

@hook validate @validateSettingsFileIsValid
Checks active settings . php file .