You are here

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'
data_policy.routing.yml in ./data_policy.routing.yml
data_policy.routing.yml

File

src/Controller/DataPolicyInformController.php, line 26

Class

DataPolicyInformController
Class DataPolicyInformController.

Namespace

Drupal\data_policy\Controller

Code

public function descriptionPage($informblock) {
  return [
    '#markup' => InformBlock::load($informblock)->body['value'],
  ];
}