You are here

public function TwitterTimelineWidget::getAvailableSettings in Twitter Embed 8

Get all available settings for a widget.

Return value

array List of settings.

Overrides TwitterWidgetInterface::getAvailableSettings

File

src/TwitterTimelineWidget.php, line 13

Class

TwitterTimelineWidget
Class TwitterTimelineWidget.

Namespace

Drupal\twitter_embed

Code

public function getAvailableSettings() {
  return [
    'username' => '',
    'type' => 'profile',
    'type_value' => '',
    'display_style' => 'timeline',
    'display_options' => [
      'theme' => 'light',
      'chrome' => NULL,
      'width' => 0,
      'height' => 600,
      'link_color' => '#2b7bb9',
      'border_color' => '#000000',
      'tweet_limit' => 0,
      'show_replies' => FALSE,
      'aria_polite' => 'polite',
      'language' => '',
    ],
  ];
}