You are here

public function NumberFormatDefinitionEvent::setDefinition in Price 8

Same name and namespace in other branches
  1. 3.x src/Event/NumberFormatDefinitionEvent.php \Drupal\price\Event\NumberFormatDefinitionEvent::setDefinition()
  2. 2.0.x src/Event/NumberFormatDefinitionEvent.php \Drupal\price\Event\NumberFormatDefinitionEvent::setDefinition()
  3. 2.x src/Event/NumberFormatDefinitionEvent.php \Drupal\price\Event\NumberFormatDefinitionEvent::setDefinition()
  4. 3.0.x src/Event/NumberFormatDefinitionEvent.php \Drupal\price\Event\NumberFormatDefinitionEvent::setDefinition()

Sets the number format definition.

Parameters

array $definition: The number format definition.

Return value

$this

File

src/Event/NumberFormatDefinitionEvent.php, line 49

Class

NumberFormatDefinitionEvent
Defines the number format definition event.

Namespace

Drupal\price\Event

Code

public function setDefinition(array $definition) {
  $this->definition = $definition;
  return $this;
}