public function TwitterWidget::setName in Twitter Profile Widget 8
Sets the Twitter widget name.
Parameters
string $name: The Twitter widget name.
Return value
\Drupal\twitter_profile_widget\TwitterWidgetInterface The called Twitter widget entity.
Overrides TwitterWidgetInterface::setName
File
- src/
Entity/ TwitterWidget.php, line 81
Class
- TwitterWidget
- Defines the Twitter widget entity.
Namespace
Drupal\twitter_profile_widget\EntityCode
public function setName($name) {
$this
->set('name', $name);
return $this;
}