Version: current

# Interface CurrentPageIdentifier

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

### Direct known implementers

`CMSMain`

Package: sapphire\model
Located at sapphire/core/model/CurrentPageIdentifier.php

## Methods summary

`public integer` | # `currentPageID( )` Get the current page ID. Get the current page ID. #### Returns `integer` int
`public boolean` | # `isCurrentPage( `DataObject` $page )` Check if the given DataObject is the current page. Check if the given DataObject is the current page. #### Parameters $page DataObject $page The page to check. #### Returns `boolean` boolean

### Magic methods summary

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -