EventBase.php in Price 2.0.x
Same filename and directory in other branches
Namespace
Drupal\priceFile
src/EventBase.phpView source
<?php
namespace Drupal\price;
// Drupal\Component\EventDispatcher\Event was introduced in Drupal core 9.1 to
// assist with deprecations and the transition to Symfony 5.
// @todo Remove this when core 9.1 is the lowest supported version.
// @see https://www.drupal.org/project/commerce/issues/3192056
if (!class_exists('Drupal\\Component\\EventDispatcher\\Event')) {
class_alias('Symfony\\Component\\EventDispatcher\\Event', 'Drupal\\Component\\EventDispatcher\\Event');
}
use Drupal\Component\EventDispatcher\Event;
/**
* Provides a base event class for Price events.
*/
class EventBase extends Event {
}