protected function SubscriptionsFormBase::getSubscriptionWidget in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Form/SubscriptionsFormBase.php \Drupal\simplenews\Form\SubscriptionsFormBase::getSubscriptionWidget()
- 8 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 103
Class
- SubscriptionsFormBase
- Entity form for Subscriber with common routines.
Namespace
Drupal\simplenews\FormCode
protected function getSubscriptionWidget(FormStateInterface $form_state) {
return $this
->getFormDisplay($form_state)
->getRenderer('subscriptions');
}