class EventSinglePageSiteAlterOutput in Single Page Site 8
Same name and namespace in other branches
- 2.x src/Event/EventSinglePageSiteAlterOutput.php \Drupal\single_page_site\Event\EventSinglePageSiteAlterOutput
- 2.0.x src/Event/EventSinglePageSiteAlterOutput.php \Drupal\single_page_site\Event\EventSinglePageSiteAlterOutput
Class EventSinglePageSiteAlterOutput.
@package Drupal\single_page_site\Event
Hierarchy
- class \Drupal\single_page_site\Event\EventSinglePageSiteAlterOutput extends \Symfony\Component\EventDispatcher\Event
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\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventSinglePageSiteAlterOutput:: |
protected | property | ||
EventSinglePageSiteAlterOutput:: |
protected | property | ||
EventSinglePageSiteAlterOutput:: |
public | function | Function to Get Current Item Count. | |
EventSinglePageSiteAlterOutput:: |
public | function | Function to get output. | |
EventSinglePageSiteAlterOutput:: |
public | function | Function to Set Current Item Count. | |
EventSinglePageSiteAlterOutput:: |
public | function | Function to set output. | |
EventSinglePageSiteAlterOutput:: |
public | function | EventAlterOutput constructor. |