function EquivalentUpdate::toSkipMessage

Same name in other branches
  1. 10 core/lib/Drupal/Core/Update/EquivalentUpdate.php \Drupal\Core\Update\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,
    ]);
}

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