Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / eu_cookie_compliance / src / Annotation / ConsentStorage.php
diff --git a/web/modules/contrib/eu_cookie_compliance/src/Annotation/ConsentStorage.php b/web/modules/contrib/eu_cookie_compliance/src/Annotation/ConsentStorage.php
new file mode 100644 (file)
index 0000000..a644377
--- /dev/null
@@ -0,0 +1,52 @@
+<?php
+
+namespace Drupal\eu_cookie_compliance\Annotation;
+
+use Drupal\Component\Annotation\Plugin;
+
+/**
+ * Defines a consent storage annotation object.
+ *
+ * Plugin Namespace: Plugin\ConsentStorage.
+ *
+ * For a working example, see
+ * \Drupal\eu_cookie_compliance\Plugin\ConsentStorage\BasicConsentStorage/registerConsent
+ *
+ * @see hook_eu_cookie_compliance_consent_storage_info_alter()
+ * @see \Drupal\eu_cookie_compliance\Plugin\ConsentStorageInterface
+ * @see \Drupal\eu_cookie_compliance\Plugin\ConsentStorageBase
+ * @see \Drupal\eu_cookie_compliance\Plugin\ConsentStorageManager
+ * @see plugin_api
+ *
+ * @Annotation
+ */
+class ConsentStorage extends Plugin {
+
+  /**
+   * The plugin ID.
+   *
+   * @var string
+   */
+  public $id;
+
+  /**
+   * The human-readable name of the consent storage.
+   *
+   * @var \Drupal\Core\Annotation\Translation
+   *
+   * @ingroup plugin_translatable
+   */
+  public $label;
+
+  /**
+   * A brief description of the consent storage.
+   *
+   * This will be shown when adding or configuring this consent storage.
+   *
+   * @var \Drupal\Core\Annotation\Translation
+   *
+   * @ingroup plugin_translatable
+   */
+  public $description = '';
+
+}