You are here

public function WebformAddonsManager::getCategories in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformAddonsManager.php \Drupal\webform\WebformAddonsManager::getCategories()

Get add-on categories.

Return value

array An array of add-on categories.

Overrides WebformAddonsManagerInterface::getCategories

File

src/WebformAddonsManager.php, line 62

Class

WebformAddonsManager
Webform add-ons manager.

Namespace

Drupal\webform

Code

public function getCategories() {
  $categories = [];
  $categories['applications'] = [
    'title' => $this
      ->t('Applications'),
  ];
  $categories['element'] = [
    'title' => $this
      ->t('Elements'),
  ];
  $categories['enhancement'] = [
    'title' => $this
      ->t('Enhancements'),
  ];
  $categories['integration'] = [
    'title' => $this
      ->t('Integrations'),
  ];
  $categories['mail'] = [
    'title' => $this
      ->t('Mail'),
  ];
  $categories['migrate'] = [
    'title' => $this
      ->t('Migrate'),
  ];
  $categories['multilingual'] = [
    'title' => $this
      ->t('Multilingual'),
  ];
  $categories['spam'] = [
    'title' => $this
      ->t('SPAM Protection'),
  ];
  $categories['submission'] = [
    'title' => $this
      ->t('Submissions'),
  ];
  $categories['validation'] = [
    'title' => $this
      ->t('Validation'),
  ];
  $categories['utility'] = [
    'title' => $this
      ->t('Utility'),
  ];
  $categories['web_services'] = [
    'title' => $this
      ->t('Web services'),
  ];
  $categories['workflow'] = [
    'title' => $this
      ->t('Workflow'),
  ];
  $categories['development'] = [
    'title' => $this
      ->t('Development'),
  ];
  return $categories;
}