You are here

function blogapi_blogger_get_recent_posts in Blog API 8

Same name and namespace in other branches
  1. 7.2 modules/blogapi_blogger/blogapi_blogger.module \blogapi_blogger_get_recent_posts()
  2. 7 blogapi.module \blogapi_blogger_get_recent_posts()

Callback for blogger.getRecentPosts.

Parameters

$hash: Unused variable.

$ct: Drupal content type.

$username: Drupal username.

$pass: Drupal password.

$number_of_posts: Number of posts to return.

bool $bodies: Bool to determine if it should return the node body.

Return value

mixed Returns a response.

1 string reference to 'blogapi_blogger_get_recent_posts'
BloggerProvider::getMethods in modules/blogapi_blogger/src/Plugin/BlogapiProvider/BloggerProvider.php
Returns implemented methods.

File

modules/blogapi_blogger/blogapi_blogger.module, line 254

Code

function blogapi_blogger_get_recent_posts($hash, $ct, $username, $pass, $number_of_posts, $bodies = TRUE) {
  $communicator = \Drupal::service('service.communicator.blogapi');
  return $communicator
    ->getRecentPosts($ct, $username, $pass, $number_of_posts, $bodies);
}