You are here

public function YamlFormAddonsManager::getCategories in YAML Form 8

Get add-on categories.

Return value

array An array of add-on categories.

Overrides YamlFormAddonsManagerInterface::getCategories

File

src/YamlFormAddonsManager.php, line 67

Class

YamlFormAddonsManager
Form add-ons manager.

Namespace

Drupal\yamlform

Code

public function getCategories() {
  $categories = [];
  $categories['config'] = [
    'title' => $this
      ->t('Configuration management'),
  ];
  $categories['integration'] = [
    'title' => $this
      ->t('Integration'),
  ];
  $categories['mail'] = [
    'title' => $this
      ->t('Mail'),
  ];
  $categories['migrate'] = [
    'title' => $this
      ->t('Migrate'),
  ];
  $categories['spam'] = [
    'title' => $this
      ->t('SPAM Protection'),
  ];
  $categories['handler'] = [
    'title' => $this
      ->t('Submission handling'),
  ];
  $categories['validation'] = [
    'title' => $this
      ->t('Validation'),
  ];
  $categories['utility'] = [
    'title' => $this
      ->t('Utility'),
  ];
  return $categories;
}