You are here

interface GeocoderPluginInterface in Geocoder 7.2

Hierarchy

  • interface \Drupal\geocoder\Plugin\GeocoderPluginInterface extends \Drupal\Component\Plugin\PluginInspectionInterface

Expanded class hierarchy of GeocoderPluginInterface

All classes that implement GeocoderPluginInterface

2 files declare their use of GeocoderPluginInterface
DumperInterface.php in src/Plugin/Geocoder/DumperInterface.php
Contains \Drupal\geocoder\Plugin\Geocoder\DumperInterface.
ProviderInterface.php in src/Plugin/Geocoder/ProviderInterface.php
Contains \Drupal\geocoder\Plugin\Geocoder\ProviderInterface.

File

src/Plugin/GeocoderPluginInterface.php, line 7

Namespace

Drupal\geocoder\Plugin
View source
interface GeocoderPluginInterface extends PluginInspectionInterface {

  /**
   * Init method launched after object initialization.
   */
  public function init();

  /**
   * Set the object's configuration.
   *
   * @param array $configuration
   *   The configuration array.
   */
  public function setConfiguration(array $configuration = array());

  /**
   * Get the object's configuration.
   */
  public function getConfiguration();

  /**
   * Get a cache object based on the cache ID.
   *
   * @param string $cid
   *   The cache ID of the data to retrieve.
   *
   * @return \DrupalCacheInterface
   *   The cache object associated to the cache ID.
   *
   * @see cache_set()
   */
  public function cache_get($cid);

  /**
   * Stores data in the persistent cache.
   *
   * The reasons for having several bins are as follows:
   *
   * @param $cid
   *   The cache ID of the data to store.
   * @param $data
   *   The data to store in the cache. Complex data types will be automatically
   *   serialized before insertion. Strings will be stored as plain text and are
   *   not serialized. Some storage engines only allow objects up to a maximum of
   *   1MB in size to be stored by default. When caching large arrays or similar,
   *   take care to ensure $data does not exceed this size.
   *
   * @see cache_set()
   */
  public function cache_set($cid, $data);

  /**
   * Generates a cache ID based on the arguments.
   *
   * @return string
   *   The cache ID.
   */
  public function getCacheCid();

}

Members

Namesort descending Modifiers Type Description Overrides
GeocoderPluginInterface::cache_get public function Get a cache object based on the cache ID. 1
GeocoderPluginInterface::cache_set public function Stores data in the persistent cache. 1
GeocoderPluginInterface::getCacheCid public function Generates a cache ID based on the arguments. 1
GeocoderPluginInterface::getConfiguration public function Get the object's configuration. 1
GeocoderPluginInterface::init public function Init method launched after object initialization. 1
GeocoderPluginInterface::setConfiguration public function Set the object's configuration. 1