Beispiel #1
0
 /**
  * Whether centinel service is enabled
  *
  * @return bool
  * @SuppressWarnings(PHPMD.BooleanGetMethodName)
  */
 public function getIsCentinelValidationEnabled()
 {
     return $this->_moduleList->has('Magento_Centinel') && 1 == $this->getConfigData('centinel');
 }
Beispiel #2
0
 /**
  * Check whether module that item depends on is active
  *
  * @return bool
  */
 protected function _isModuleDependenciesAvailable()
 {
     if ($this->_dependsOnModule) {
         $module = $this->_dependsOnModule;
         return $this->_moduleList->has($module);
     }
     return true;
 }