You are here

public function ReferenceablePluginTypesEvent::setPluginTypes in Commerce Core 8.2

Sets the plugin types.

Parameters

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

Return value

$this

File

src/Event/ReferenceablePluginTypesEvent.php, line 49

Class

ReferenceablePluginTypesEvent
Defines the referenceable plugin types event.

Namespace

Drupal\commerce\Event

Code

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