You are here

public function SubscriptionsPageForm::form in Simplenews 3.x

Gets the actual form array to be built.

Overrides SubscriptionsFormBase::form

See also

\Drupal\Core\Entity\EntityForm::processForm()

\Drupal\Core\Entity\EntityForm::afterBuild()

File

src/Form/SubscriptionsPageForm.php, line 33

Class

SubscriptionsPageForm
Configure subscriptions of the currently authenticated subscriber.

Namespace

Drupal\simplenews\Form

Code

public function form(array $form, FormStateInterface $form_state) {
  $form = parent::form($form, $form_state);
  $form['subscriptions']['widget']['#title'] = $this
    ->t('Subscriptions for %mail', [
    '%mail' => $this->entity
      ->getMail(),
  ]);
  return $form;
}