# getAttributes

Learn how to get the context attributes for the content.

This method provides the context attributes set for the content.

## Signature

This method has the following signature:

```php
public function getAttributes(): array
```

This method returns the context attributes, or an empty array by default.

## Example

Here is a basic example of how to use this method:

```php
<?php
use Croct\Plug\FetchOptions;

$options = FetchOptions::defaults()->withAttribute('plan', 'premium');
$attributes = $options->getAttributes();
```
