mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-05 18:07:08 +02:00
Add function AdminPlugin::getFormFieldTypes()
This commit is contained in:
29
admin.php
29
admin.php
@@ -514,6 +514,35 @@ class AdminPlugin extends Plugin
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get list of form field types specified in this plugin. Only special types needs to be listed.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getFormFieldTypes()
|
||||
{
|
||||
return [
|
||||
'column' => [
|
||||
'form_field' => false
|
||||
],
|
||||
'columns' => [
|
||||
'form_field' => false
|
||||
],
|
||||
'fieldset' => [
|
||||
'form_field' => false
|
||||
],
|
||||
'section' => [
|
||||
'form_field' => false
|
||||
],
|
||||
'tab' => [
|
||||
'form_field' => false
|
||||
],
|
||||
'tabs' => [
|
||||
'form_field' => false
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize the admin.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user