interface CurrentPageIdentifier (View source)

deprecated 5.4.0 Will be renamed to SilverStripe\CMS\Model\CurrentRecordIdentifier

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

Methods

public
int
currentPageID() deprecated

Get the current page ID.

public
bool
isCurrentPage(DataObject $page) deprecated

Check if the given DataObject is the current page.

Details

int currentPageID() deprecated

deprecated 5.4.0 Will be renamed to currentRecordID()

Get the current page ID.

Return Value

int

bool isCurrentPage(DataObject $page) deprecated

deprecated 5.4.0 Will be renamed to isCurrentRecord()

Check if the given DataObject is the current page.

Parameters

DataObject $page

The page to check.

Return Value

bool