class TagListManager extends EntityListManager (View source)

Perform basic filtering and search over entity listings.

Constants

ITEM_PER_PAGE

Properties

protected null|Request $request from EntityListManager
protected EntityManager|null $_em from EntityListManager
protected string $entityName from EntityListManager
protected Paginator $paginator from EntityListManager
protected bool $pagination from EntityListManager
protected array|null $orderingArray from EntityListManager
protected array|null $filteringArray from EntityListManager
protected array|null $queryArray from EntityListManager
protected string|null $searchPattern from EntityListManager
protected int|null $currentPage from EntityListManager
protected array|null $assignation from EntityListManager
protected int|null $itemPerPage from EntityListManager
protected Translation|null $translation from EntityListManager
protected bool $displayNotPublishedNodes from EntityListManager
protected bool $displayAllNodesStatuses from EntityListManager

Methods

__construct(Request $request, EntityManager $_em, array $preFilters = [], array $preOrdering = [])

No description

bool
setDisplayingNotPublishedNodes(bool $displayNotPublishedNodes)

No description

bool
isDisplayingAllNodesStatuses()

No description

$this
setDisplayingAllNodesStatuses(bool $displayAllNodesStatuses)

Switch repository to disable any security on Node status. To use ONLY in order to view deleted and archived nodes.

$this
enablePagination()

No description

$this
setTranslation(Translation $newtranslation = null)

No description

void
handle(boolean $disabled = false)

Handle request to find filter to apply to entity listing.

$this
setPage(integer $page)

Configure a custom current page.

$this
disablePagination()

No description

createPaginator()

No description

array
getAssignation()

Get Twig assignation to render list details.

int
getItemCount()

No description

float|int
getPageCount()

No description

array|Paginator
getEntities()

No description

int
getItemPerPage()

No description

$this
setItemPerPage(integer $itemPerPage)

Configure a custom item count per page.

int
getPage()

No description

Details

__construct(Request $request, EntityManager $_em, array $preFilters = [], array $preOrdering = [])

Parameters

Request $request
EntityManager $_em
array $preFilters
array $preOrdering

bool isDisplayingNotPublishedNodes()

Return Value

bool

EntityListManager setDisplayingNotPublishedNodes(bool $displayNotPublishedNodes)

Parameters

bool $displayNotPublishedNodes

Return Value

EntityListManager

bool isDisplayingAllNodesStatuses()

Return Value

bool

$this setDisplayingAllNodesStatuses(bool $displayAllNodesStatuses)

Switch repository to disable any security on Node status. To use ONLY in order to view deleted and archived nodes.

Parameters

bool $displayAllNodesStatuses

Return Value

$this

$this enablePagination()

Return Value

$this

Translation getTranslation()

Return Value

Translation

$this setTranslation(Translation $newtranslation = null)

Parameters

Translation $newtranslation

Return Value

$this

void handle(boolean $disabled = false)

Handle request to find filter to apply to entity listing.

Parameters

boolean $disabled Disable pagination and filtering over GET params

Return Value

void

$this setPage(integer $page)

Configure a custom current page.

Parameters

integer $page

Return Value

$this

$this disablePagination()

Return Value

$this

protected createPaginator()

array getAssignation()

Get Twig assignation to render list details.

** Fields:

  • description [string]
  • search [string]
  • currentPage [int]
  • pageCount [int]
  • itemPerPage [int]
  • itemCount [int]
  • previousPage [int]
  • nextPage [int]
  • nextPageQuery [string]
  • previousPageQuery [string]
  • previousQueryArray [array]
  • nextQueryArray [array]

Return Value

array

int getItemCount()

Return Value

int

float|int getPageCount()

Return Value

float|int

array|Paginator getEntities()

Return Value

array|Paginator

int getItemPerPage()

Return Value

int

$this setItemPerPage(integer $itemPerPage)

Configure a custom item count per page.

Parameters

integer $itemPerPage

Return Value

$this

int getPage()

Return Value

int