Commit 62765af6 authored by Oleh Vehera's avatar Oleh Vehera
Browse files

Issue #3302060 by voleger, yonailo, xamount: [warning] Invalid argument...

Issue #3302060 by voleger, yonailo, xamount: [warning] Invalid argument supplied for foreach() ConfigImportSubscriber.php:177
parent a66a3632
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -39,13 +39,13 @@ class MenuItemExtrasUninstallValidator implements ModuleUninstallValidatorInterf
   * {@inheritdoc}
   */
  public function validate($module) {
    if ($module === 'menu_item_extras' && $this->hasExtraData()) {
    $reasons = [];
    if ($module === 'menu_item_extras' && $this->hasExtraData()) {
      $reasons[] = $this->t('There are extra data for menus. <a href=":url">Remove extra data</a>.', [
        ':url' => Url::fromRoute('menu_item_extras.clear_all_extra_data')->toString(),
      ]);
      return $reasons;
    }
    return $reasons;
  }

  /**