CoolCMS API

LanguageFormTrait

Add/edit form of a language.

The skeleton comes from BasePresenter::createForm(). The entity is flat (the language itself, no translations): name and alias (code). The manager is adminLanguageManager from AdminFormHelpersTrait (the admin LanguageManager, not the inherited Front $languageManager).

Table of Contents

Methods

createComponentEditForm()  : Form
saveLanguageForm()  : bool
Saves the form data; the redirect is handled by {@see \App\Core\Base\Admin\BasePresenter::createForm()}.
setLanguageFormDefaults()  : void

Methods

saveLanguageForm()

Saves the form data; the redirect is handled by {@see \App\Core\Base\Admin\BasePresenter::createForm()}.

private saveLanguageForm(ArrayHash<string|int, mixed> $values) : bool
Parameters
$values : ArrayHash<string|int, mixed>
Return values
bool
On this page

Search results