3 namespace Drupal\eu_cookie_compliance\Annotation;
5 use Drupal\Component\Annotation\Plugin;
8 * Defines a consent storage annotation object.
10 * Plugin Namespace: Plugin\ConsentStorage.
12 * For a working example, see
13 * \Drupal\eu_cookie_compliance\Plugin\ConsentStorage\BasicConsentStorage/registerConsent
15 * @see hook_eu_cookie_compliance_consent_storage_info_alter()
16 * @see \Drupal\eu_cookie_compliance\Plugin\ConsentStorageInterface
17 * @see \Drupal\eu_cookie_compliance\Plugin\ConsentStorageBase
18 * @see \Drupal\eu_cookie_compliance\Plugin\ConsentStorageManager
23 class ConsentStorage extends Plugin {
33 * The human-readable name of the consent storage.
35 * @var \Drupal\Core\Annotation\Translation
37 * @ingroup plugin_translatable
42 * A brief description of the consent storage.
44 * This will be shown when adding or configuring this consent storage.
46 * @var \Drupal\Core\Annotation\Translation
48 * @ingroup plugin_translatable
50 public $description = '';