You are here

public function ReferenceablePluginTypesEvent::__construct in Commerce Core 8.2

Constructs a new ReferenceablePluginTypesEvent object.

Parameters

array $plugin_types: The plugin types, in the id => label format.

File

src/Event/ReferenceablePluginTypesEvent.php, line 27

Class

ReferenceablePluginTypesEvent
Defines the referenceable plugin types event.

Namespace

Drupal\commerce\Event

Code

public function __construct(array $plugin_types) {
  $this->pluginTypes = $plugin_types;
}