function Announcement::__construct
Same name in other branches
- 10 core/modules/announcements_feed/src/Announcement.php \Drupal\announcements_feed\Announcement::__construct()
Construct an Announcement object.
Parameters
string $id: Unique identifier of the announcement.
string $title: Title of the announcement.
string $url: URL where the announcement can be seen.
string $date_modified: When was the announcement last modified.
string $date_published: When was the announcement published.
string $content_html: HTML content of the announcement.
string $version: Target Drupal version of the announcement.
bool $featured: Whether this announcement is featured or not.
File
-
core/
modules/ announcements_feed/ src/ Announcement.php, line 36
Class
- Announcement
- Object containing a single announcement from the feed.
Namespace
Drupal\announcements_feedCode
public function __construct(string $id, string $title, string $url, string $date_modified, string $date_published, string $content_html, string $version, bool $featured) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.