You are here

public function TwitterWidgetInterface::setDependentConfiguration in Twitter Embed 8

Set the configuration state based on the chosen options.

Some options are dependent to others, resets the options that does not need values or set the default configuration to avoid a configuration state that does not comply with the Twitter widgets.

Parameters

array $configuration: List of selected configuration.

2 methods override TwitterWidgetInterface::setDependentConfiguration()
TwitterButtonWidget::setDependentConfiguration in src/TwitterButtonWidget.php
Set the configuration state based on the chosen options.
TwitterTimelineWidget::setDependentConfiguration in src/TwitterTimelineWidget.php
Set the configuration state based on the chosen options.

File

src/TwitterWidgetInterface.php, line 87

Class

TwitterWidgetInterface
Interface TwitterWidgetInterface.

Namespace

Drupal\twitter_embed

Code

public function setDependentConfiguration(array &$configuration);