Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (ModuleList\Loader $loader, ModuleList $list, Writer $writer, ConflictChecker $conflictChecker, DependencyChecker $dependencyChecker) | |
checkConstraints ( $isEnabled, $modulesToBeChanged, $currentlyEnabledModules=null, $prettyMessage=false) | |
setIsEnabled ($isEnabled, $modules) | |
getModulesToChange ($isEnabled, $modules) | |
A service for controlling module status
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 17 of file Status.php.
__construct | ( | ModuleList\Loader | $loader, |
ModuleList | $list, | ||
Writer | $writer, | ||
ConflictChecker | $conflictChecker, | ||
DependencyChecker | $dependencyChecker | ||
) |
Constructor
ModuleList\Loader | $loader | |
ModuleList | $list | |
Writer | $writer | |
ConflictChecker | $conflictChecker | |
DependencyChecker | $dependencyChecker |
Definition at line 63 of file Status.php.
checkConstraints | ( | $isEnabled, | |
$modulesToBeChanged, | |||
$currentlyEnabledModules = null , |
|||
$prettyMessage = false |
|||
) |
Whether it is allowed to enable or disable specified modules
bool | $isEnabled | |
string[] | $modulesToBeChanged | |
string[] | $currentlyEnabledModules | |
bool | $prettyMessage |
Definition at line 87 of file Status.php.
getModulesToChange | ( | $isEnabled, | |
$modules | |||
) |
Get a list of modules that will be changed
bool | $isEnabled | |
string[] | $modules |
Definition at line 164 of file Status.php.
setIsEnabled | ( | $isEnabled, | |
$modules | |||
) |
Sets specified modules to enabled or disabled state
Performs other necessary routines, such as cache cleanup
bool | $isEnabled | |
string[] | $modules |
Definition at line 143 of file Status.php.