hook_event_dispatcher-8.x-2.04/modules/preprocess_event_dispatcher/src/Variables/ViewTableEventVariables.php

modules/preprocess_event_dispatcher/src/Variables/ViewTableEventVariables.php
<?php

namespace Drupal\preprocess_event_dispatcher\Variables;

use Drupal\views\ResultRow;
use Drupal\views\ViewExecutable;

/**
 * Class ViewTableEventVariables.
 */
class ViewTableEventVariables extends AbstractEventVariables {

  /**
   * Get the row.
   *
   * @return \Drupal\views\ResultRow
   *   Row.
   */
  public function getRows(): ResultRow {
    return $this->variables['rows'];
  }

  /**
   * Get the view.
   *
   * @return \Drupal\views\ViewExecutable
   *   View.
   */
  public function getView(): ViewExecutable {
    return $this->variables['view'];
  }

}

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

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