class NumberFormatDefinitionEvent in Price 8
Same name and namespace in other branches
- 3.x src/Event/NumberFormatDefinitionEvent.php \Drupal\price\Event\NumberFormatDefinitionEvent
- 2.0.x src/Event/NumberFormatDefinitionEvent.php \Drupal\price\Event\NumberFormatDefinitionEvent
- 2.x src/Event/NumberFormatDefinitionEvent.php \Drupal\price\Event\NumberFormatDefinitionEvent
- 3.0.x src/Event/NumberFormatDefinitionEvent.php \Drupal\price\Event\NumberFormatDefinitionEvent
Defines the number format definition event.
Hierarchy
- class \Drupal\price\Event\NumberFormatDefinitionEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of NumberFormatDefinitionEvent
See also
\Drupal\price\Event\PriceEvents
1 file declares its use of NumberFormatDefinitionEvent
- NumberFormatRepository.php in src/
Repository/ NumberFormatRepository.php
File
- src/
Event/ NumberFormatDefinitionEvent.php, line 12
Namespace
Drupal\price\EventView source
class NumberFormatDefinitionEvent extends Event {
/**
* The number format definition.
*
* @var array
*/
protected $definition;
/**
* Constructs a new NumberFormatDefinitionEvent.
*
* @param array $definition
* The number format definition.
*/
public function __construct(array $definition) {
$this->definition = $definition;
}
/**
* Gets the number format definition.
*
* @return array
* The number format definition.
*/
public function getDefinition() {
return $this->definition;
}
/**
* Sets the number format definition.
*
* @param array $definition
* The number format definition.
*
* @return $this
*/
public function setDefinition(array $definition) {
$this->definition = $definition;
return $this;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NumberFormatDefinitionEvent:: |
protected | property | The number format definition. | |
NumberFormatDefinitionEvent:: |
public | function | Gets the number format definition. | |
NumberFormatDefinitionEvent:: |
public | function | Sets the number format definition. | |
NumberFormatDefinitionEvent:: |
public | function | Constructs a new NumberFormatDefinitionEvent. |