Implements \Drupal\Core\Form\ConfirmFormBase::getDescription().
Overrides ConfirmFormBase::getDescription
protected function getDescription() {
$locked = $this->tempStore
->getMetadata($this->view
->id());
$accounts = $this->entityManager
->getStorageController('user')
->load(array(
$locked->owner,
));
return t('By breaking this lock, any unsaved changes made by !user will be lost.', array(
'!user' => theme('username', array(
'account' => reset($accounts),
)),
));
}