new Tab( array( 'title' => t('Preferences'), 'url' => Url::fromPath('/preference') ) ) ); } /** * Show form to adjust user preferences */ public function indexAction() { $storeConfig = Config::app()->getSection('preferences'); $user = $this->getRequest()->getUser(); $form = new PreferenceForm(); $form->setPreferences($user->getPreferences()); if ($storeConfig->get('store', 'ini') !== 'none') { $form->setStore(PreferencesStore::create($storeConfig, $user)); } $form->handleRequest(); $this->view->form = $form; $this->getTabs()->activate('preferences'); } }