
| Current Path : /var/www/html/store/web/modules/contrib/commerce/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/commerce/src/Event/ReferenceablePluginTypesEvent.php |
<?php
namespace Drupal\commerce\Event;
use Drupal\commerce\EventBase;
/**
* Defines the referenceable plugin types event.
*
* @see \Drupal\commerce\Event\CommerceEvents
*/
class ReferenceablePluginTypesEvent extends EventBase {
/**
* The plugin types, in the id => label format.
*
* @var array
*/
protected $pluginTypes;
/**
* Constructs a new ReferenceablePluginTypesEvent object.
*
* @param array $plugin_types
* The plugin types, in the id => label format.
*/
public function __construct(array $plugin_types) {
$this->pluginTypes = $plugin_types;
}
/**
* Gets the plugin types.
*
* @return array
* The plugin types, in the id => label format.
*/
public function getPluginTypes() {
return $this->pluginTypes;
}
/**
* Sets the plugin types.
*
* @param array $plugin_types
* The plugin types, in the id => label format.
*
* @return $this
*/
public function setPluginTypes(array $plugin_types) {
$this->pluginTypes = $plugin_types;
return $this;
}
}