public function NumberFormatDefinitionEvent::setDefinition in Price 8
Same name and namespace in other branches
- 3.x src/Event/NumberFormatDefinitionEvent.php \Drupal\price\Event\NumberFormatDefinitionEvent::setDefinition()
- 2.0.x src/Event/NumberFormatDefinitionEvent.php \Drupal\price\Event\NumberFormatDefinitionEvent::setDefinition()
- 2.x src/Event/NumberFormatDefinitionEvent.php \Drupal\price\Event\NumberFormatDefinitionEvent::setDefinition()
- 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\EventCode
public function setDefinition(array $definition) {
$this->definition = $definition;
return $this;
}