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));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.