public function DataPolicyInformController::descriptionPage in Data Policy 8
Show description of information block for the current page.
Parameters
string $informblock: The 'informblock' entity ID.
Return value
array The 'body' field value.
1 string reference to 'DataPolicyInformController::descriptionPage'
File
- src/
Controller/ DataPolicyInformController.php, line 26
Class
- DataPolicyInformController
- Class DataPolicyInformController.
Namespace
Drupal\data_policy\ControllerCode
public function descriptionPage($informblock) {
return [
'#markup' => InformBlock::load($informblock)->body['value'],
];
}