public function AdminReadinessMessages::__construct in Automatic Updates 8.2
Constructs a ReadinessRequirement object.
Parameters
\Drupal\automatic_updates\Validation\ReadinessValidationManager $readiness_checker_manager: The readiness checker manager service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
\Drupal\Core\Routing\AdminContext $admin_context: The admin context service.
\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.
\Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service.
\Drupal\Core\Routing\CurrentRouteMatch $current_route_match: The current route match.
File
- src/
Validation/ AdminReadinessMessages.php, line 76
Class
- AdminReadinessMessages
- Class for displaying readiness messages on admin pages.
Namespace
Drupal\automatic_updates\ValidationCode
public function __construct(ReadinessValidationManager $readiness_checker_manager, MessengerInterface $messenger, AdminContext $admin_context, AccountProxyInterface $current_user, TranslationInterface $translation, CurrentRouteMatch $current_route_match) {
$this->readinessCheckerManager = $readiness_checker_manager;
$this
->setMessenger($messenger);
$this->adminContext = $admin_context;
$this->currentUser = $current_user;
$this
->setStringTranslation($translation);
$this->currentRouteMatch = $current_route_match;
}