public function LogTemplateManagerInterface::getLabelsByCategory in Commerce Core 8.2
Gets the log template labels grouped by category.
Parameters
string $entity_type_id: (optional) The entity type ID to filter by. If provided, only log templates that belong to categories with the specified entity type will be returned.
Return value
array Keys are category labels, and values are arrays of which the keys are log template IDs and the values are log template labels.
1 method overrides LogTemplateManagerInterface::getLabelsByCategory()
- LogTemplateManager::getLabelsByCategory in modules/
log/ src/ LogTemplateManager.php - Gets the log template labels grouped by category.
File
- modules/
log/ src/ LogTemplateManagerInterface.php, line 24
Class
- LogTemplateManagerInterface
- Defines the interface for commerce_log_template plugin managers.
Namespace
Drupal\commerce_logCode
public function getLabelsByCategory($entity_type_id = NULL);