public function SitewideAlert::setName in Sitewide Alert 8
Sets the Sitewide Alert name.
Parameters
string $name: The Sitewide Alert name.
Return value
\Drupal\sitewide_alert\Entity\SitewideAlertInterface The called Sitewide Alert entity.
Overrides SitewideAlertInterface::setName
File
- src/
Entity/ SitewideAlert.php, line 154
Class
- SitewideAlert
- Defines the Sitewide Alert entity.
Namespace
Drupal\sitewide_alert\EntityCode
public function setName($name) {
$this
->set('name', $name);
return $this;
}