You are here

interface GeofieldBackendPluginInterface in Geofield 8

Defines an interface for Geofield backends.

Modules implementing this interface may want to extend GeofieldBackendBase class, which provides default implementations of each method.

Hierarchy

Expanded class hierarchy of GeofieldBackendPluginInterface

All classes that implement GeofieldBackendPluginInterface

See also

\Drupal\geofield\Annotation\GeofieldBackend

\Drupal\geofield\Plugin\GeofieldBackendBase

\Drupal\geofield\Plugin\GeofieldBackendManager

Plugin API

File

src/Plugin/GeofieldBackendPluginInterface.php, line 18

Namespace

Drupal\geofield\Plugin
View source
interface GeofieldBackendPluginInterface extends PluginInspectionInterface {

  /**
   * Provides the specific database schema for the specific backend.
   *
   * @return array
   *   The schema value array.
   */
  public function schema();

  /**
   * Saves the Geo value into the Specific Backend Format.
   *
   * @param mixed|null $geometry
   *   The Geometry to save.
   *
   * @return mixed|null
   *   The specific backend format value.
   */
  public function save($geometry);

}

Members

Namesort descending Modifiers Type Description Overrides
GeofieldBackendPluginInterface::save public function Saves the Geo value into the Specific Backend Format. 2
GeofieldBackendPluginInterface::schema public function Provides the specific database schema for the specific backend. 2
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2