You are here

class EventSinglePageSiteAlterOutput in Single Page Site 8

Same name and namespace in other branches
  1. 2.x src/Event/EventSinglePageSiteAlterOutput.php \Drupal\single_page_site\Event\EventSinglePageSiteAlterOutput
  2. 2.0.x src/Event/EventSinglePageSiteAlterOutput.php \Drupal\single_page_site\Event\EventSinglePageSiteAlterOutput

Class EventSinglePageSiteAlterOutput.

@package Drupal\single_page_site\Event

Hierarchy

Expanded class hierarchy of EventSinglePageSiteAlterOutput

2 files declare their use of EventSinglePageSiteAlterOutput
AlterSinglePageSiteOutput.php in modules/single_page_site_next_page/src/EventSubscriber/AlterSinglePageSiteOutput.php
SinglePageSiteController.php in src/Controller/SinglePageSiteController.php

File

src/Event/EventSinglePageSiteAlterOutput.php, line 12

Namespace

Drupal\single_page_site\Event
View source
class EventSinglePageSiteAlterOutput extends Event {
  protected $output;
  protected $currentItemCount;

  /**
   * EventAlterOutput constructor.
   *
   * @param mixed $output
   *   Output value.
   * @param int $current_item_count
   *   Current item count.
   */
  public function __construct($output, $current_item_count) {
    $this->output = $output;
    $this->currentItemCount = $current_item_count;
  }

  /**
   * Function to get output.
   *
   * @return mixed
   *   Returns the output value.
   */
  public function getOutput() {
    return $this->output;
  }

  /**
   * Function to set output.
   *
   * @param mixed $output
   *   Output value.
   */
  public function setOutput($output) {
    $this->output = $output;
  }

  /**
   * Function to Get Current Item Count.
   *
   * @return mixed
   *   Returns the Current Item Count.
   */
  public function getCurrentItemCount() {
    return $this->currentItemCount;
  }

  /**
   * Function to Set Current Item Count.
   *
   * @param mixed $currentItemCount
   *   Current Item Count value.
   */
  public function setCurrentItemCount($currentItemCount) {
    $this->currentItemCount = $currentItemCount;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EventSinglePageSiteAlterOutput::$currentItemCount protected property
EventSinglePageSiteAlterOutput::$output protected property
EventSinglePageSiteAlterOutput::getCurrentItemCount public function Function to Get Current Item Count.
EventSinglePageSiteAlterOutput::getOutput public function Function to get output.
EventSinglePageSiteAlterOutput::setCurrentItemCount public function Function to Set Current Item Count.
EventSinglePageSiteAlterOutput::setOutput public function Function to set output.
EventSinglePageSiteAlterOutput::__construct public function EventAlterOutput constructor.