You are here

class BloggerProvider in Blog API 8

Class BloggerProvider.

@package Drupal\blogapi_blogger\Plugin\BlogapiProvider

Plugin annotation


@Provider(
  id = "BloggerProvider",
  name = @Translation("Blogger BlogAPI Provider")
)

Hierarchy

Expanded class hierarchy of BloggerProvider

1 string reference to 'BloggerProvider'
blogapi_blogger_xmlrpc in modules/blogapi_blogger/blogapi_blogger.module
Returns implemented methods.

File

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

Namespace

Drupal\blogapi_blogger\Plugin\BlogapiProvider
View source
class BloggerProvider extends ProviderBase {

  /**
   * Returns implemented methods.
   *
   * @return array
   *   Array of implemented methods.
   */
  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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BloggerProvider::getMethods public static function Returns implemented methods. Overrides ProviderBase::getMethods
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 92