Beispiel #1
0
 /**
  * Check if Inline Translates is allowed
  *
  * @return bool
  */
 public function isAllowed()
 {
     if ($this->isAllowed === null) {
         if (!$this->scope instanceof \Magento\Framework\App\ScopeInterface) {
             $scope = $this->scopeResolver->getScope($this->scope);
         }
         $this->isAllowed = $this->config->isActive($scope) && $this->config->isDevAllowed($scope);
     }
     return $this->state->isEnabled() && $this->isAllowed;
 }