You are here

public function Forms::getSettingsPage in FZ152 8

If you want to add settings as tab to main settings you can define it here.

Otherwise define the page by yourself.

Return value

array Possible values:

  • "path": The tab path additional: /admin/config/fz152/[PATH].
  • "title": String with title for tab and page with settings.
  • "form": As in routing.yml file must contains form Class.
  • "weight": Weight for tab on page.

Overrides Fz152PluginBase::getSettingsPage

File

src/Plugin/Fz152/Forms.php, line 20

Class

Forms
Provides an annotated Fz152 plugin for config forms.

Namespace

Drupal\fz152\Plugin\Fz152

Code

public function getSettingsPage() {
  return [
    'path' => 'forms',
    'title' => 'Forms',
    'form' => Fz152SettingsForms::class,
    'weight' => 0,
  ];
}