You are here

protected function SubscriptionsFormBase::getSubscriptionWidget in Simplenews 8.2

Same name and namespace in other branches
  1. 8 src/Form/SubscriptionsFormBase.php \Drupal\simplenews\Form\SubscriptionsFormBase::getSubscriptionWidget()
  2. 3.x src/Form/SubscriptionsFormBase.php \Drupal\simplenews\Form\SubscriptionsFormBase::getSubscriptionWidget()

Returns the renderer for the 'subscriptions' field.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state: The form state object.

Return value

\Drupal\simplenews\SubscriptionWidgetInterface The widget.

File

src/Form/SubscriptionsFormBase.php, line 128

Class

SubscriptionsFormBase
Entity form for Subscriber with common routines.

Namespace

Drupal\simplenews\Form

Code

protected function getSubscriptionWidget(FormStateInterface $form_state) {
  return $this
    ->getFormDisplay($form_state)
    ->getRenderer('subscriptions');
}