/** * Return the selections array. * * @return array */ public function selections() { $value = $this->object->getValue(); $options = $this->object->getOptions(); return array_intersect_key($options, array_flip($value)); }
/** * Return the selections array. * * @return array */ public function selections() { $value = $this->object->getValue(); $options = $this->object->getOptions(); return array_intersect_key($options, array_flip($value)); }