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

Breadcrumb

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

function EquivalentUpdate::toSkipMessage

Creates a message to explain why an update has been skipped.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup An message explaining why an update has been skipped.

File

core/lib/Drupal/Core/Update/EquivalentUpdate.php, line 40

Class

EquivalentUpdate
Value object to hold information about an equivalent update.

Namespace

Drupal\Core\Update

Code

public function toSkipMessage() : TranslatableMarkup {
    return new TranslatableMarkup('Update @number for the @module module has been skipped because the equivalent change was already made in update @ran_update.', [
        '@number' => $this->future_update,
        '@module' => $this->module,
        '@ran_update' => $this->ran_update,
    ]);
}
RSS feed
Powered by Drupal