You are here

public function WebformEntityStorageInterface::getCategories in Webform 8.5

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

Gets the names of all categories.

Parameters

null|bool $template: If TRUE only template categories will be returned. If FALSE only webform categories will be returned. If NULL all categories will be returned.

Return value

string[] An array of translated categories, sorted alphabetically.

1 method overrides WebformEntityStorageInterface::getCategories()
WebformEntityStorage::getCategories in src/WebformEntityStorage.php
Gets the names of all categories.

File

src/WebformEntityStorageInterface.php, line 24

Class

WebformEntityStorageInterface
Provides an interface for Webform storage.

Namespace

Drupal\webform

Code

public function getCategories($template = NULL);