public function Log::getCategory in Commerce Core 8.2
Gets the category.
Return value
\Drupal\commerce_log\Plugin\LogCategory\LogCategoryInterface The category.
Overrides LogInterface::getCategory
File
- modules/
log/ src/ Entity/ Log.php, line 70
Class
- Log
- Defines the log entity class.
Namespace
Drupal\commerce_log\EntityCode
public function getCategory() {
$log_category_manager = \Drupal::service('plugin.manager.commerce_log_category');
return $log_category_manager
->createInstance($this
->getCategoryId());
}