themeCollectionFactory = $themeCollectionFactory; } /** * Return array of options as value-label pairs * * @return array Format: array('' => '', ...) */ public function toOptionArray() { // Load only visible themes that are used in frontend area return $this->themeCollectionFactory->create()->loadRegisteredThemes()->toOptionHash(); } }