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
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\geofield\Plugin\GeofieldBackendPluginInterface
Expanded class hierarchy of GeofieldBackendPluginInterface
All classes that implement GeofieldBackendPluginInterface
See also
\Drupal\geofield\Annotation\GeofieldBackend
\Drupal\geofield\Plugin\GeofieldBackendBase
\Drupal\geofield\Plugin\GeofieldBackendManager
File
- src/
Plugin/ GeofieldBackendPluginInterface.php, line 18
Namespace
Drupal\geofield\PluginView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GeofieldBackendPluginInterface:: |
public | function | Saves the Geo value into the Specific Backend Format. | 2 |
GeofieldBackendPluginInterface:: |
public | function | Provides the specific database schema for the specific backend. | 2 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |