public function Layer::buildRenderable in Geolocation Field 8.3
Builds a renderable array of the view.
Note: This does not yet contain the executed view, but just the loaded view executable.
Parameters
array $args: (optional) Arguments of the view.
bool $cache: (optional) Specify FALSE in order to opt out of render caching.
Return value
array The render array of a view.
Overrides DisplayPluginBase::buildRenderable
File
- src/
Plugin/ views/ display/ Layer.php, line 139
Class
- Layer
- The plugin that handles an attachment display.
Namespace
Drupal\geolocation\Plugin\views\displayCode
public function buildRenderable(array $args = [], $cache = TRUE) {
$render = parent::buildRenderable($args, $cache);
$render['#embed'] = TRUE;
return $render;
}