Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $queryOptions = $this->query->getOptions($this->getValue());
- if (!is_array($queryOptions) && empty($queryOptions)) {
- return null;
- }
- foreach ($queryOptions as $id => $queryOption) {
- $this->returnData[$id]['fieldType'] = self::FIELD_TYPE;
- $this->returnData[$id]['id'] = $queryOption->getName();
- $this->returnData[$id]['label'] = $queryOption->getLabel();
- $this->returnData[$id]['selected'] = $this->isSelected($queryOption->getName());
- }
- return $this->returnData;
Advertisement
Add Comment
Please, Sign In to add comment