You are here

public function SubscriptionWidgetInterface::setHidden in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/SubscriptionWidgetInterface.php \Drupal\simplenews\SubscriptionWidgetInterface::setHidden()
  2. 8 src/SubscriptionWidgetInterface.php \Drupal\simplenews\SubscriptionWidgetInterface::setHidden()

Hide the widget.

Must be called before ::formElement().

Parameters

bool $set: If FALSE, widget will not be hidden.

1 method overrides SubscriptionWidgetInterface::setHidden()
SubscriptionWidget::setHidden in src/Plugin/Field/FieldWidget/SubscriptionWidget.php
Hide the widget.

File

src/SubscriptionWidgetInterface.php, line 28

Class

SubscriptionWidgetInterface
Defines a widget used for the subscriptions field of a Subscriber.

Namespace

Drupal\simplenews

Code

public function setHidden($set = TRUE);