# Event reference

Ibexa DXP dispatches events before and after you perform different operations in the back office and on the Repository.

Ibexa DXP dispatches events during different actions. You can subscribe to these events to extend the functionality of the system.

In most cases, two events are dispatched for every action, one before the action is completed, and one after.

For example, copying a content item is connected with two events: `BeforeCopyContentEvent` and `CopyContentEvent`.

```php
<?php declare(strict_types=1);

namespace App\EventSubscriber;

use Ibexa\Contracts\Core\Repository\Events\Content\CopyContentEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

class MyEventSubcriber implements EventSubscriberInterface
{
    public static function getSubscribedEvents(): array
    {
        return [
            CopyContentEvent::class => ['onCopyContent', 0],
        ];
    }

    public function onCopyContent(CopyContentEvent $event): void
    {
        // your implementation
    }
}
```

- [AI Actions events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/ai_action_events/): Events that are triggered when working with AI actions.
- [Cart events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/cart_events/): Events that are triggered when working with carts.
- [Product catalog events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/product_catalog_events/): Events that are triggered when working with products, prices, currencies, and attribute rendering.
- [Collaboration events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/collaboration_events/): Events that are triggered when working with collaborative editing feature.
- [Content events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/content_events/): Events that are triggered when working with content.
- [Content type events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/content_type_events/): Events that are triggered when working with content types.
- [Discounts events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/discounts_events/): Events that are triggered when working with discounts.
- [Integrated help events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/integrated_help_events/): Events that are triggered when working with integrated help features like product tours.
- [Language events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/language_events/): Events that are triggered when working with languages.
- [Location events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/location_events/): Events that are triggered when working with content Locations.
- [Object state events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/object_state_events/): Events that are triggered when working with object states and object state groups.
- [Order management events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/order_management_events/): Events that are triggered when working with orders.
- [Other events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/other_events/): Events that are triggered when working with bookmarks, notifications, settings, forms and others.
- [Page events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/page_events/): Events that are triggered when working with pages and page blocks.
- [Payment events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/payment_events/): Events that are triggered when working with payments and payment methods.
- [Role events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/role_events/): Events that are triggered when working with roles.
- [Section events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/section_events/): Events that are triggered when working with sections.
- [Segmentation events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/segmentation_events/): Events that are triggered when working with segments.
- [Site events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/site_events/): Events that are triggered when working with sites.
- [Taxonomy events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/taxonomy_events/): Events that are triggered when working with taxonomy.
- [Trash events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/trash_events/): Events that are triggered when working with Trash.
- [Twig Components events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/twig_component_events/): Events that are triggered when rendering Twig Components.
- [URL events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/url_events/): Events that are triggered when working with URLs, URL aliases and URL wildcards.
- [User events](https:///ez-systems-developer-documentation--3271.com.readthedocs.build/en/3271/api/event_reference/user_events/): Events that are triggered when working with users and user groups.
