interface CurrentPageIdentifier (View source)

This interface lets us set up objects that will tell us what the current page is.

Methods

public
int
currentPageID()

Get the current page ID.

public
bool
isCurrentPage(DataObject $page)

Check if the given DataObject is the current page.

Details

int currentPageID()

Get the current page ID.

Return Value

int

bool isCurrentPage(DataObject $page)

Check if the given DataObject is the current page.

Parameters

DataObject $page

The page to check.

Return Value

bool