improvements-2.x-dev/modules/improvements_views/src/Plugin/views/display/Results.php

modules/improvements_views/src/Plugin/views/display/Results.php
<?php

namespace Drupal\improvements_views\Plugin\views\display;

use Drupal\views\Plugin\views\display\DisplayPluginBase;

/**
 * @ViewsDisplay(
 *   id = "results",
 *   title = @Translation("Results"),
 *   help = @Translation("Show results without any wrappers."),
 *   uses_menu_links = FALSE,
 * )
 */
class Results extends DisplayPluginBase {

  /**
   * {@inheritdoc}
   */
  protected $usesAJAX = FALSE;

  /**
   * {@inheritdoc}
   */
  protected bool $ajaxEnabled = FALSE;

  /**
   * {@inheritdoc}
   */
  protected $usesPager = FALSE;

  /**
   * {@inheritdoc}
   */
  protected $usesMore = FALSE;

  /**
   * {@inheritdoc}
   */
  protected $usesAttachments = FALSE;

  /**
   * {@inheritdoc}
   */
  protected $usesAreas = FALSE;

  /**
   * {@inheritdoc}
   */
  public function render(): array {
    $build = $this->view->style_plugin->render($this->view->result);

    $this->applyDisplayCacheabilityMetadata($build);

    return $build;
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc