geno/wp-content/plugins/mailpoet/lib/AdminPages/Pages/StaticSegments.php
2024-02-01 11:54:18 +00:00

35 lines
804 B
PHP

<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
namespace MailPoet\AdminPages\Pages;
if (!defined('ABSPATH')) exit;
use MailPoet\AdminPages\PageRenderer;
use MailPoet\Listing\PageLimit;
class StaticSegments {
/** @var PageRenderer */
private $pageRenderer;
/** @var PageLimit */
private $listingPageLimit;
public function __construct(
PageRenderer $pageRenderer,
PageLimit $listingPageLimit
) {
$this->pageRenderer = $pageRenderer;
$this->listingPageLimit = $listingPageLimit;
}
/**
* @return void
*/
public function render() {
$data = [];
$data['items_per_page'] = $this->listingPageLimit->getLimitPerPage('segments');
$this->pageRenderer->displayPage('segments/static.html', $data);
}
}