You are here

public function Log::getParams in Commerce Core 8.2

Gets the template parameters.

Return value

array The parameters.

Overrides LogInterface::getParams

File

modules/log/src/Entity/Log.php, line 116

Class

Log
Defines the log entity class.

Namespace

Drupal\commerce_log\Entity

Code

public function getParams() {
  if (!$this
    ->get('params')
    ->isEmpty()) {
    return $this
      ->get('params')
      ->first()
      ->getValue();
  }
  else {
    return [];
  }
}