You are here

ConsentStorageInterface.php in EU Cookie Compliance (GDPR Compliance) 8

Same filename and directory in other branches
  1. 2.0.x src/Plugin/ConsentStorageInterface.php

File

src/Plugin/ConsentStorageInterface.php
View source
<?php

namespace Drupal\eu_cookie_compliance\Plugin;

use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;

/**
 * Defines the interface for consent storages.
 *
 * @see \Drupal\eu_cookie_compliance\Plugin\ConsentStorageBase
 * @see \Drupal\eu_cookie_compliance\Plugin\ConsentStorageManager
 * @see \Drupal\eu_cookie_compliance\Plugin\ConsentStorageManagerInterface
 * @see plugin_api
 */
interface ConsentStorageInterface extends PluginInspectionInterface, ContainerFactoryPluginInterface {

  /**
   * Returns the consent storage label.
   *
   * @return string
   *   The consent storage label.
   */
  public function label();

  /**
   * Returns the consent storage description.
   *
   * @return string
   *   The consent storage description.
   */
  public function description();

}

Interfaces

Namesort descending Description
ConsentStorageInterface Defines the interface for consent storages.