function AnnounceFetcher::fetchIds
Fetch ids of announcements.
Return value
array An array with ids of all announcements in the feed.
File
-
core/
modules/ announcements_feed/ src/ AnnounceFetcher.php, line 69
Class
- AnnounceFetcher
- Service to fetch announcements from the external feed.
Namespace
Drupal\announcements_feedCode
public function fetchIds() : array {
return array_column($this->fetch(), 'id');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.