SilverStripe\CMS\Model\SiteTree::InSection
Check if this page is in the given current section.
Signature
public function InSection(string
$sectionName )
Parameters
$sectionName
— string- Name of the section to check
Returns
- bool
- True if we are in the given section