You are here

public function AvailableCountriesEvent::__construct in Address 8

Constructs a new AvailableCountriesEvent object.

Parameters

array $available_countries: The available countries.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.

File

src/Event/AvailableCountriesEvent.php, line 40

Class

AvailableCountriesEvent
Defines the available countries event.

Namespace

Drupal\address\Event

Code

public function __construct(array $available_countries, FieldDefinitionInterface $field_definition) {
  $this->availableCountries = $available_countries;
  $this->fieldDefinition = $field_definition;
}