viewAssetRepository = $viewAssetRepository; } /** * @inheritdoc */ public function toOptionArray(): array { return [ [ 'value' => self::POPUP, 'label' => __('Cookie Consent Popup'), 'image' => $this->viewAssetRepository->getUrl( 'Plumrocket_CookieConsent::images/system_config/banner-style/consent_popup.png' ), 'image2x' => $this->viewAssetRepository->getUrl( 'Plumrocket_CookieConsent::images/system_config/banner-style/consent_popup@2x.png' ), ], [ 'value' => self::BOTTOM, 'label' => __('Bottom Cookie Banner'), 'image' => $this->viewAssetRepository->getUrl( 'Plumrocket_CookieConsent::images/system_config/banner-style/bottom_panel.png' ), 'image2x' => $this->viewAssetRepository->getUrl( 'Plumrocket_CookieConsent::images/system_config/banner-style/bottom_panel@2x.png' ), ], [ 'value' => self::WALL, 'label' => __('Full-Screen Cookie Wall'), 'image' => $this->viewAssetRepository->getUrl( 'Plumrocket_CookieConsent::images/system_config/banner-style/full_screen.png' ), 'image2x' => $this->viewAssetRepository->getUrl( 'Plumrocket_CookieConsent::images/system_config/banner-style/full_screen@2x.png' ), ], ]; } }