3 namespace Drupal\views\Plugin\views\display;
6 * The plugin that handles an embed display.
8 * @ingroup views_display_plugins
10 * @todo: Wait until annotations/plugins support access methods.
11 * no_ui => !\Drupal::config('views.settings')->get('ui.show.display_embed'),
15 * title = @Translation("Embed"),
16 * help = @Translation("Provide a display which can be embedded using the views api."),
17 * theme = "views_view",
18 * uses_menu_links = FALSE
21 class Embed extends DisplayPluginBase {
26 protected $usesAttachments = TRUE;
31 public function buildRenderable(array $args = [], $cache = TRUE) {
32 $build = parent::buildRenderable($args, $cache);
33 $build['#embed'] = TRUE;