Access the current page's ID and content element ID in an exbase controller action:
$contentObj = $this->configurationManager->getContentObject(); $pageUid = $contentObj->data['pid']; $contentElementUid = $contentObj->data['uid'];
With vhs:
{v:page.info(field: 'uid')}