You are here

public function SitewideAlert::getName in Sitewide Alert 8

Gets the Sitewide Alert name.

Return value

string Name of the Sitewide Alert.

Overrides SitewideAlertInterface::getName

File

src/Entity/SitewideAlert.php, line 147

Class

SitewideAlert
Defines the Sitewide Alert entity.

Namespace

Drupal\sitewide_alert\Entity

Code

public function getName() {
  return $this
    ->get('name')->value;
}