/** * {@inheritdoc} */ public function get(Shop $shop) { return ['properties' => ['id' => ['type' => 'long'], 'name' => $this->fieldMapping->getLanguageField($shop), 'filterable' => ['type' => 'boolean'], 'options' => ['properties' => ['id' => ['type' => 'long'], 'name' => $this->fieldMapping->getLanguageField($shop)]]]]; }
/** * @param Shop $shop * @return array */ private function getManufacturerMapping(Shop $shop) { return ['properties' => ['id' => ['type' => 'long'], 'name' => $this->fieldMapping->getLanguageField($shop), 'description' => ['type' => 'string'], 'coverFile' => ['type' => 'string'], 'link' => ['type' => 'string'], 'metaTitle' => ['type' => 'string'], 'metaDescription' => ['type' => 'string'], 'metaKeywords' => ['type' => 'string']]]; }
/** * @param Shop $shop * @return array */ public function get(Shop $shop) { return ['properties' => ['id' => ['type' => 'long'], 'title' => $this->fieldMapping->getLanguageField($shop), 'shortDescription' => $this->fieldMapping->getLanguageField($shop), 'longDescription' => $this->fieldMapping->getLanguageField($shop), 'metaTitle' => $this->fieldMapping->getLanguageField($shop), 'metaKeywords' => $this->fieldMapping->getLanguageField($shop), 'metaDescription' => $this->fieldMapping->getLanguageField($shop)]]; }