public function GeolocationStyleBase::render in Geolocation Field 8.3
Render the display in this style.
Overrides StylePluginBase::render
2 calls to GeolocationStyleBase::render()
- CommonMap::render in src/
Plugin/ views/ style/ CommonMap.php - Render the display in this style.
- Layer::render in src/
Plugin/ views/ style/ Layer.php - Render the display in this style.
2 methods override GeolocationStyleBase::render()
- CommonMap::render in src/
Plugin/ views/ style/ CommonMap.php - Render the display in this style.
- Layer::render in src/
Plugin/ views/ style/ Layer.php - Render the display in this style.
File
- src/
Plugin/ views/ style/ GeolocationStyleBase.php, line 71
Class
- GeolocationStyleBase
- Geolocation Style Base.
Namespace
Drupal\geolocation\Plugin\views\styleCode
public function render() {
if (empty($this->options['geolocation_field'])) {
\Drupal::messenger()
->addMessage('The geolocation based view ' . $this->view
->id() . ' views style was called without a geolocation field defined in the views style settings.', 'error');
return FALSE;
}
if (empty($this->view->field[$this->options['geolocation_field']])) {
\Drupal::messenger()
->addMessage('The geolocation based view ' . $this->view
->id() . ' views style was called with a non-available geolocation field defined in the views style settings.', 'error');
return FALSE;
}
return parent::render();
}