Verified Commit 921268a5 authored by Dave Long's avatar Dave Long
Browse files

task: #3627134 Delete WorkspacesRequirements

By: dcam
By: ishfaqafridi85
By: rikkert86
(cherry picked from commit 073a7d38)
parent 36bdab64
Loading
Loading
Loading
Loading
Loading
+0 −32
Changes for core/modules/workspaces/src/Install/Requirements/WorkspacesRequirements.php: 0 added lines, 32 removed lines.
Original line number Diff line number Diff line
<?php

declare(strict_types=1);

namespace Drupal\workspaces\Install\Requirements;

use Drupal\Core\Extension\InstallRequirementsInterface;
use Drupal\Core\Extension\Requirement\RequirementSeverity;

/**
 * Install time requirements for the workspaces module.
 */
class WorkspacesRequirements implements InstallRequirementsInterface {

  /**
   * {@inheritdoc}
   */
  public static function getRequirements(): array {
    $requirements = [];
    if (\Drupal::moduleHandler()->moduleExists('workspace')) {
      $requirements['workspace_incompatibility'] = [
        'severity' => RequirementSeverity::Error,
        'description' => t('Workspaces can not be installed when the contributed Workspace module is also installed. See the <a href=":link">upgrade path</a> page for more information on how to upgrade.', [
          ':link' => 'https://www.drupal.org/node/2987783',
        ]),
      ];
    }

    return $requirements;
  }

}