Implements \Drupal\Core\Form\FormInterface::buildForm().
Overrides ConfirmFormBase::buildForm
public function buildForm(array $form, array &$form_state, ViewStorageInterface $view = NULL) {
$this->view = $view;
if (!$this->tempStore
->getMetadata($this->view
->id())) {
$form['message']['#markup'] = t('There is no lock on view %name to break.', array(
'%name' => $this->view
->id(),
));
return $form;
}
return parent::buildForm($form, $form_state);
}