public static function GeofieldBounds::getComponents in Geofield 8
Components Getter.
Return value
array Components Array.
Overrides GeofieldElementBase::getComponents
1 call to GeofieldBounds::getComponents()
- GeofieldBounds::boundsValidate in src/
Element/ GeofieldBounds.php - Validates a Geofield bounds element.
File
- src/
Element/ GeofieldBounds.php, line 17
Class
- GeofieldBounds
- Provides a Geofield bounds form element.
Namespace
Drupal\geofield\ElementCode
public static function getComponents() {
return [
'top' => [
'title' => t('Top'),
'range' => 90,
],
'right' => [
'title' => t('Right'),
'range' => 180,
],
'bottom' => [
'title' => t('Bottom'),
'range' => 90,
],
'left' => [
'title' => t('Left'),
'range' => 180,
],
];
}