You are here

public function DataPolicyInformController::title in Data Policy 8

Title of an information block.

Parameters

string $informblock: The 'informblock' entity ID.

Return value

string The label of entity.

1 string reference to 'DataPolicyInformController::title'
data_policy.routing.yml in ./data_policy.routing.yml
data_policy.routing.yml

File

src/Controller/DataPolicyInformController.php, line 39

Class

DataPolicyInformController
Class DataPolicyInformController.

Namespace

Drupal\data_policy\Controller

Code

public function title($informblock) {
  return InformBlock::load($informblock)
    ->label();
}