private function TwitterWidget::createLabel in Twitter Embed 8
Returns a label depending on the configuration.
Parameters
array $configuration: List of selected configuration.
Return value
string Label.
1 call to TwitterWidget::createLabel()
- TwitterWidget::getWidget in src/
TwitterWidget.php - Returns a Twitter widget depending on the configuration.
File
- src/
TwitterWidget.php, line 109
Class
- TwitterWidget
- Class TwitterWidget.
Namespace
Drupal\twitter_embedCode
private function createLabel(array $configuration) {
// @todo handle several cases from the configuration
return t('Tweets by @@username', [
'@username' => $configuration['username'],
]);
}