You are here

public function TwitterWidgetInterface::setSettingsFormStates in Twitter Embed 8

Set the settings form #states based the context selector.

The javascript selector changes, depending on the FieldFormatter or Block implementation.

Parameters

array $form: The original Form array.

string $selector: The javascript selector.

Return value

array The form array with states for form elements.

2 methods override TwitterWidgetInterface::setSettingsFormStates()
TwitterButtonWidget::setSettingsFormStates in src/TwitterButtonWidget.php
Set the settings form #states based the context selector.
TwitterTimelineWidget::setSettingsFormStates in src/TwitterTimelineWidget.php
Set the settings form #states based the context selector.

File

src/TwitterWidgetInterface.php, line 103

Class

TwitterWidgetInterface
Interface TwitterWidgetInterface.

Namespace

Drupal\twitter_embed

Code

public function setSettingsFormStates(array $form, $selector);