public function ConnectionAddController::getAddFormTitle in RedHen CRM 8
Provides the page title for this controller.
Parameters
\Drupal\Core\Entity\EntityInterface $redhen_connection_type: The custom bundle/type being added.
\Drupal\Core\Entity\EntityInterface $entity: The provided endpoint.
Return value
string The page title.
File
- modules/
redhen_connection/ src/ Controller/ ConnectionAddController.php, line 142
Class
- ConnectionAddController
- Class ConnectionAddController.
Namespace
Drupal\redhen_connection\ControllerCode
public function getAddFormTitle(EntityInterface $redhen_connection_type) {
$entity = redhen_connection_get_connection_entity_from_route();
return t('Create @type Connection for @entity', [
'@type' => $redhen_connection_type
->label(),
'@entity' => $entity
->label(),
]);
}