public function BreakLockForm::getDescription in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/views_ui/src/Form/BreakLockForm.php \Drupal\views_ui\Form\BreakLockForm::getDescription()
Returns additional text to display as a description.
Return value
string The form description.
Overrides EntityConfirmFormBase::getDescription
File
- core/
modules/ views_ui/ src/ Form/ BreakLockForm.php, line 75 - Contains \Drupal\views_ui\Form\BreakLockForm.
Class
- BreakLockForm
- Builds the form to break the lock of an edited view.
Namespace
Drupal\views_ui\FormCode
public function getDescription() {
$locked = $this->tempStore
->getMetadata($this->entity
->id());
$account = $this->entityManager
->getStorage('user')
->load($locked->owner);
$username = array(
'#theme' => 'username',
'#account' => $account,
);
return $this
->t('By breaking this lock, any unsaved changes made by @user will be lost.', array(
'@user' => drupal_render($username),
));
}