urlManager->createUrl($action).'">
'.
Html::hiddenInput('entity', $entity).
Html::dropDownList(
'pagesize',
$pageSize,
$this->getPageSizeOptions(),
array('class'=>'form-control')).'
';
}
public function getPageSizeOptions(): array
{
$pageSizeOptionsArray = [];
foreach(self::$pageSizeOptions as $pageSize) {
$pageSizeOptionsArray[$pageSize] = $pageSize;
}
return $pageSizeOptionsArray;
}
public function isPageSizeExist(int $pageSize): bool
{
return in_array($pageSize, self::$pageSizeOptions);
}
}