Commit 0bde6736 authored by vbouchet's avatar vbouchet
Browse files

Issue #3276442: Drush constraint is not working for some commands

parent 59585ace
Loading
Loading
Loading
Loading
+7
Changes for modules/memory_limit_policy_drush/src/Plugin/MemoryLimitConstraint/Drush.php: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -28,6 +28,13 @@ class Drush extends MemoryLimitConstraintBase {
      '#description' => $this->t('Enter one drush command per line.'),
      '#default_value' => $this->getConfiguration()['drush_commands'] ?? '',
    ];

    $form['drush_warning'] = [
      '#type' => 'markup',
      '#markup' => $this->t("It is known that memory limit policy won't apply for some core Drush commands (typically commands defined in <a href='https://github.com/drush-ops/drush/tree/11.x/src/Commands'>src/Commands</a>) due to the order files are loaded. See <a href='https://www.drupal.org/project/memory_limit_policy/issues/3276442'>#3276442</a> for more info."),
      '#prefix' => '<span class="form-item__description color-error">',
      '#suffix' => '</span>',
    ];
    return $form;
  }