You are here

public function ReplicationFailInfoController::viewTitle in Deploy - Content Staging 8

Renders replication fail info.

Parameters

int $replication_id:

Return value

string Array of page elements to render. Array of page elements to render.

1 string reference to 'ReplicationFailInfoController::viewTitle'
deploy.routing.yml in ./deploy.routing.yml
deploy.routing.yml

File

src/Controller/ReplicationFailInfoController.php, line 61

Class

ReplicationFailInfoController

Namespace

Drupal\deploy\Controller

Code

public function viewTitle($replication_id) {
  $entity = $this
    ->entityTypeManager()
    ->getStorage('replication')
    ->load($replication_id);
  return 'Deployment "' . $entity
    ->label() . '" failed';
}