scopeType = $scopeType; $this->scopeConfig = $scopeConfig; $this->scopeResolver = $scopeResolver; } /** * @inheritdoc */ public function isVisible(array $arguments) { return $this->scopeConfig->isSetFlag( $arguments['configPath'], $this->scopeType, $this->scopeResolver->getScope() ); } /** * @return string */ public function getName() { return self::NAME; } }