0 follower

Final Class Yiisoft\Yii\DataView\Pagination\PaginatorNotSupportedException

InheritanceYiisoft\Yii\DataView\Pagination\PaginatorNotSupportedException » LogicException

Exception thrown when a pagination widget receives an unsupported paginator type.

Public Methods

Hide inherited methods

Method Description Defined By
__construct() Creates a new instance for the given unsupported paginator. Yiisoft\Yii\DataView\Pagination\PaginatorNotSupportedException

Method Details

Hide inherited methods

__construct() public method

Creates a new instance for the given unsupported paginator.

public mixed __construct ( \Yiisoft\Data\Paginator\PaginatorInterface $paginator )
$paginator \Yiisoft\Data\Paginator\PaginatorInterface

The unsupported paginator instance.

                public function __construct(PaginatorInterface $paginator)
{
    parent::__construct(
        sprintf('Paginator "%s" is not supported.', $paginator::class),
    );
}