getAll(); foreach ($lists as $i => $oneList) { if ($oneList->active == 0) { unset($lists[$i]); } } if ('WordPress' == 'Joomla' && $this->value == 'All') { $formId = $this->form->getData()->get('id'); if (!empty($formId)) { $this->value = ''; } } if (is_string($this->value)) { $this->value = explode(',', $this->value); } if (in_array('None', $this->value)) { $this->value = []; } if (in_array('All', $this->value)) { $this->value = array_keys($lists); } return acym_selectMultiple($lists, $this->name, $this->value, ['id' => $this->name], 'id', 'name'); } }