/**
  * {@inheritdoc}
  */
 public function form(array $form, FormStateInterface $form_state)
 {
     $form = parent::form($form, $form_state);
     // Create link to full block form.
     $query = [];
     if ($destination = $this->getRequest()->query->get('destination')) {
         $query['destination'] = $destination;
     }
     $form['advanced_link'] = ['#type' => 'link', '#title' => $this->t('Advanced options'), '#url' => $this->entity->toUrl('edit-form', ['query' => $query]), '#weight' => 1000];
     // Remove the ID and region elements.
     unset($form['id'], $form['region'], $form['settings']['admin_label']);
     return $form;
 }