function AnnounceFetcher::fetchIds

Same name in other branches
  1. 10 core/modules/announcements_feed/src/AnnounceFetcher.php \Drupal\announcements_feed\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_feed

Code

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.