public function TwitterButtonWidget::getAvailableSettings in Twitter Embed 8
Get all available settings for a widget.
Return value
array List of settings.
Overrides TwitterWidgetInterface::getAvailableSettings
File
- src/
TwitterButtonWidget.php, line 13
Class
- TwitterButtonWidget
- Class TwitterButtonWidget.
Namespace
Drupal\twitter_embedCode
public function getAvailableSettings() {
return [
'username' => '',
'display_style' => 'follow-button',
'display_options' => [
'hide_username' => FALSE,
'hide_followers_count' => FALSE,
'size' => NULL,
'theme' => 'light',
'link_color' => '#2b7bb9',
'border_color' => '#000000',
'width' => 0,
'height' => 600,
'language' => '',
],
];
}