You are here

class NumberFormatEvent in Price 8

Same name and namespace in other branches
  1. 3.x src/Event/NumberFormatEvent.php \Drupal\price\Event\NumberFormatEvent
  2. 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\Event
View 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

Namesort descending Modifiers Type Description Overrides
NumberFormatEvent::$numberFormat protected property The number format.
NumberFormatEvent::getNumberFormat public function Gets the number format.
NumberFormatEvent::__construct public function Constructs a new NumberFormatEvent.