You are here

public function Contact::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

modules/contact/src/Plugin/Fz152/Contact.php, line 27

Class

Contact
Provides an annotated Fz152 plugin to configure contact form.

Namespace

Drupal\fz152_contact\Plugin\Fz152

Code

public function getSettingsPage() {
  return [
    'path' => 'contact',
    'title' => 'Contact',
    'form' => Fz152ContactSettings::class,
    'weight' => 5,
  ];
}