You are here

public function Embed::buildRenderable in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/display/Embed.php \Drupal\views\Plugin\views\display\Embed::buildRenderable()
  2. 9 core/modules/views/src/Plugin/views/display/Embed.php \Drupal\views\Plugin\views\display\Embed::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\display

Code

public function buildRenderable(array $args = [], $cache = TRUE) {
  $build = parent::buildRenderable($args, $cache);
  $build['#embed'] = TRUE;
  return $build;
}