\App\Base\TraitsAdminFormTrait

Administration Forms Trait

Summary

Methods
Properties
Constants
changedWebsiteCallback()
No public properties found
No constants found
addFrontendFormElements()
addSeoFormElements()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

changedWebsiteCallback()

changedWebsiteCallback(\Degami\PHPFormsApi\Form  $form) : mixed

callback for "changed website form select" event

Parameters

\Degami\PHPFormsApi\Form $form

Returns

mixed —

addFrontendFormElements()

addFrontendFormElements(\Degami\PHPFormsApi\Form  $form,  $form_state, string[]  $form_elements = ['url', 'website_id', 'locale']) : \Degami\PHPFormsApi\Form

adds frontend elements to form

Parameters

\Degami\PHPFormsApi\Form $form
$form_state
string[] $form_elements

Throws

\Degami\Basics\Exceptions\BasicException
\Phpfastcache\Exceptions\PhpfastcacheSimpleCacheException

Returns

\Degami\PHPFormsApi\Form —

addSeoFormElements()

addSeoFormElements(\Degami\PHPFormsApi\Form  $form,  $form_state) : \Degami\PHPFormsApi\Form

adds SEO elements to form

Parameters

\Degami\PHPFormsApi\Form $form
$form_state

Returns

\Degami\PHPFormsApi\Form —