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

Breadcrumb

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

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_feed

Code

public function fetchIds() : array {
    return array_column($this->fetch(), 'id');
}

API Navigation

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