scopeConfig = $scopeConfig; } /** * Get config value is session disabled for grapqhl area. * * @param string $scopeType * @param null|int|string $scopeCode * @return bool */ public function isDisabled($scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode = null): bool { $value = $this->scopeConfig->getValue( self::XML_PATH_GRAPHQL_DISABLE_SESSION, $scopeType, $scopeCode ); if ($value === '1') { return true; } return false; } }