getUserStateFromRequest('com_templates.styles.client_id', 'client_id', '0', 'string'); // Get the templates for the selected client_id. $options = TemplatesHelper::getTemplateOptions($clientId); // Merge into the parent options. return array_merge(parent::getOptions(), $options); } }