# Events

Advanced SEO dispatches events when SEO data is saved or deleted. All events are in the `Aerni\AdvancedSeo\Events` namespace.

## Available Events

### SeoSetConfigSaved

`Aerni\AdvancedSeo\Events\SeoSetConfigSaved`

Dispatched after a set's configuration has been saved.

```php
public function handle(SeoSetConfigSaved $event)
{
    $event->config;
}
```

### SeoSetConfigDeleted

`Aerni\AdvancedSeo\Events\SeoSetConfigDeleted`

Dispatched after a set's configuration has been deleted.

```php
public function handle(SeoSetConfigDeleted $event)
{
    $event->config;
}
```

### SeoSetLocalizationSaved

`Aerni\AdvancedSeo\Events\SeoSetLocalizationSaved`

Dispatched after a localization has been saved.

```php
public function handle(SeoSetLocalizationSaved $event)
{
    $event->localization;
}
```

### SeoSetLocalizationDeleted

`Aerni\AdvancedSeo\Events\SeoSetLocalizationDeleted`

Dispatched after a localization has been deleted.

```php
public function handle(SeoSetLocalizationDeleted $event)
{
    $event->localization;
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://advanced-seo.michaelaerni.ch/extending/events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
