You are here

public static function BloggerProvider::getMethods in Blog API 8

Returns implemented methods.

Return value

array Array of implemented methods.

Overrides ProviderBase::getMethods

File

modules/blogapi_blogger/src/Plugin/BlogapiProvider/BloggerProvider.php, line 25

Class

BloggerProvider
Class BloggerProvider.

Namespace

Drupal\blogapi_blogger\Plugin\BlogapiProvider

Code

public static function getMethods() {
  $methods = [
    [
      'blogger.deletePost',
      'blogapi_blogger_delete_post',
      [
        'string',
        'string',
        'string',
        'string',
        'string',
        'boolean',
      ],
      'Deletes a post.',
    ],
    [
      'blogger.getUsersBlogs',
      'blogapi_blogger_get_users_blogs',
      [
        'string',
        'string',
        'string',
        'string',
      ],
      'Returns a list of blogs to which an author has posting privileges.',
    ],
    [
      'blogger.getUserInfo',
      'blogapi_blogger_get_user_info',
      [
        'string',
        'string',
        'string',
        'string',
      ],
      'Returns information about an author in the system.',
    ],
    [
      'blogger.newPost',
      'blogapi_blogger_new_post',
      [
        'string',
        'string',
        'string',
        'string',
        'string',
        'string',
        'boolean',
      ],
      'Creates a new post, and optionally publishes it.',
    ],
    [
      'blogger.editPost',
      'blogapi_blogger_edit_post',
      [
        'string',
        'string',
        'string',
        'string',
        'string',
        'string',
        'boolean',
      ],
      'Updates the information about an existing post.',
    ],
    [
      'blogger.getPost',
      'blogapi_blogger_get_post',
      [
        'string',
        'string',
        'string',
        'string',
        'string',
      ],
      'Returns information about a specific post.',
    ],
    [
      'blogger.getRecentPosts',
      'blogapi_blogger_get_recent_posts',
      [
        'string',
        'string',
        'string',
        'string',
        'string',
        'int',
      ],
      'Returns a list of the most recent posts in the system.',
    ],
  ];
  return $methods;
}