Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StatusCheckEvent.php

function StatusCheckEvent::addWarning

Adds warning information to the event.

Parameters

\Drupal\Core\StringTranslation\TranslatableMarkup[] $messages: One or more warning messages.

\Drupal\Core\StringTranslation\TranslatableMarkup|null $summary: A summary of warning messages. Must be passed if there is more than one message.

File

core/modules/package_manager/src/Event/StatusCheckEvent.php, line 62

Class

StatusCheckEvent
Event fired to check the status of the system to use Package Manager.

Namespace

Drupal\package_manager\Event

Code

public function addWarning(array $messages, ?TranslatableMarkup $summary = NULL) : void {
    $this->addResult(ValidationResult::createWarning($messages, $summary));
}
RSS feed
Powered by Drupal