예제 #1
0
 /**
  * {@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)]]]];
 }
예제 #2
0
 /**
  * @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']]];
 }
예제 #3
0
 /**
  * @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)]];
 }