public function DiskSpaceValidator::__construct in Automatic Updates 8.2
Constructs a DiskSpaceValidator object.
Parameters
\Drupal\automatic_updates\PathLocator $path_locator: The path locator service.
\Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service.
File
- src/
Validator/ DiskSpaceValidator.php, line 37
Class
- DiskSpaceValidator
- Validates that there is enough free disk space to do automatic updates.
Namespace
Drupal\automatic_updates\ValidatorCode
public function __construct(PathLocator $path_locator, TranslationInterface $translation) {
$this->pathLocator = $path_locator;
$this
->setStringTranslation($translation);
}