Beispiel #1
0
 /**
  * {@inheritdoc}
  *
  * @param string $ban_id
  *   The IP address record ID to unban.
  */
 public function buildForm(array $form, FormStateInterface $form_state, $ban_id = '')
 {
     if (!($this->banIp = $this->ipManager->findById($ban_id))) {
         throw new NotFoundHttpException();
     }
     return parent::buildForm($form, $form_state);
 }