class NumberFormatEvent in Price 8
Same name and namespace in other branches
- 3.x src/Event/NumberFormatEvent.php \Drupal\price\Event\NumberFormatEvent
- 3.0.x src/Event/NumberFormatEvent.php \Drupal\price\Event\NumberFormatEvent
Defines the number format event.
Hierarchy
- class \Drupal\price\Event\NumberFormatEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of NumberFormatEvent
Deprecated
No longer fired, switch to NumberFormatDefinitionEvent.
See also
\Drupal\price\Event\PriceEvents
File
- src/Event/ NumberFormatEvent.php, line 14 
Namespace
Drupal\price\EventView source
class NumberFormatEvent extends Event {
  /**
   * The number format.
   *
   * @var object
   */
  protected $numberFormat;
  /**
   * Constructs a new NumberFormatEvent.
   *
   * @param object $number_format
   *   The number format.
   */
  public function __construct($number_format) {
    $this->numberFormat = $number_format;
  }
  /**
   * Gets the number format.
   *
   * @return object
   *   The number format.
   */
  public function getNumberFormat() {
    return $this->numberFormat;
  }
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| NumberFormatEvent:: | protected | property | The number format. | |
| NumberFormatEvent:: | public | function | Gets the number format. | |
| NumberFormatEvent:: | public | function | Constructs a new NumberFormatEvent. | 
