Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Announcement.php

function 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_feed

Code

public function __construct(string $id, string $title, string $url, string $date_modified, string $date_published, string $content_html, string $version, bool $featured) {
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal