public function Embed::buildRenderable in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/display/Embed.php \Drupal\views\Plugin\views\display\Embed::buildRenderable()
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
- core/
modules/ views/ src/ Plugin/ views/ display/ Embed.php, line 31
Class
- Embed
- The plugin that handles an embed display.
Namespace
Drupal\views\Plugin\views\displayCode
public function buildRenderable(array $args = [], $cache = TRUE) {
$build = parent::buildRenderable($args, $cache);
$build['#embed'] = TRUE;
return $build;
}