You are here

public function OpignoNotification::getUrl in Opigno notifications 3.x

Same name and namespace in other branches
  1. 8 src/Entity/OpignoNotification.php \Drupal\opigno_notification\Entity\OpignoNotification::getUrl()

Get the notification url.

Return value

string The notification url.

Overrides OpignoNotificationInterface::getUrl

File

src/Entity/OpignoNotification.php, line 260

Class

OpignoNotification
Defines the opigno_notification entity.

Namespace

Drupal\opigno_notification\Entity

Code

public function getUrl() : string {
  return $this
    ->get('url')
    ->getString() ?? '/notifications';
}