function Announcement::getContent
Same name in other branches
- 10 core/modules/announcements_feed/src/Announcement.php \Drupal\announcements_feed\Announcement::getContent()
Returns the content of the announcement with no markup.
Return value
string Content of the announcement without markup.
File
-
core/
modules/ announcements_feed/ src/ Announcement.php, line 54
Class
- Announcement
- Object containing a single announcement from the feed.
Namespace
Drupal\announcements_feedCode
public function getContent() {
return strip_tags($this->content_html);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.