You are here

ModuleUninstallValidatorInterface.php in Service Container 7

Same filename and directory in other branches
  1. 7.2 src/Extension/ModuleUninstallValidatorInterface.php

File

src/Extension/ModuleUninstallValidatorInterface.php
View source
<?php

/**
 * @file
 * Contains Drupal\Core\Extension\ModuleUninstallValidatorInterface.
 */
namespace Drupal\Core\Extension;


/**
 * Common interface for module uninstall validators.
 */
interface ModuleUninstallValidatorInterface {

  /**
   * Determines the reasons a module can not be uninstalled.
   *
   * @param string $module
   *   A module name.
   *
   * @return string[]
   *   An array of reasons the module can not be uninstalled, empty if it can.
   */
  public function validate($module);

}

Interfaces

Namesort descending Description
ModuleUninstallValidatorInterface Common interface for module uninstall validators.