
| Current Path : /var/www/html/store/web/modules/contrib/address/src/Event/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store/web/modules/contrib/address/src/Event/AddressFormatEvent.php |
<?php
namespace Drupal\address\Event;
use Drupal\Component\EventDispatcher\Event;
/**
* Defines the address format event.
*
* @see \Drupal\address\Event\AddressEvents
* @see \CommerceGuys\Addressing\AddressFormat\AddressFormat
*/
class AddressFormatEvent extends Event {
/**
* The address format definition.
*
* @var array
*/
protected $definition;
/**
* Constructs a new AddressFormatEvent object.
*
* @param array $definition
* The address format definition.
*/
public function __construct(array $definition) {
$this->definition = $definition;
}
/**
* Gets the address format definition.
*
* @return array
* The address format definition.
*/
public function getDefinition() {
return $this->definition;
}
/**
* Sets the address format definition.
*
* @param array $definition
* The address format definition.
*
* @return $this
*/
public function setDefinition(array $definition) {
$this->definition = $definition;
return $this;
}
}