public function ReadinessRequirements::__construct in Automatic Updates 8.2
Constructor ReadinessRequirement object.
Parameters
\Drupal\automatic_updates\Validation\ReadinessValidationManager $readiness_checker_manager: The readiness checker manager service.
\Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
File
- src/
Validation/ ReadinessRequirements.php, line 52
Class
- ReadinessRequirements
- Class for generating the readiness checkers' output for hook_requirements().
Namespace
Drupal\automatic_updates\ValidationCode
public function __construct(ReadinessValidationManager $readiness_checker_manager, TranslationInterface $translation, DateFormatterInterface $date_formatter) {
$this->readinessCheckerManager = $readiness_checker_manager;
$this
->setStringTranslation($translation);
$this->dateFormatter = $date_formatter;
}