public function OpenlayersMap::render in Openlayers 7.3
Renders the content.
Parameters
$hide_emtpy If set to true, then the renderer should return an empty: array if there is no content to display, for example if the user does not have access to the requested content.
$args Used during an ajax call to pass in the settings necessary to: render this type of content.
Overrides QuickContentRenderable::render
File
- modules/
openlayers_quicktabs/ plugins/ quicktabs/ OpenlayersMap.php, line 42 - Openlayers quicktab plugin.
Class
- OpenlayersMap
- Class for tab content of type "openlayers_map".
Code
public function render($hide_empty = FALSE, $args = array()) {
if ($this->rendered_content) {
return $this->rendered_content;
}
$item = $this->settings;
$output = array(
'#type' => 'openlayers',
'#map' => $item['map'],
);
$this->rendered_content = $output;
return $output;
}