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
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\blogapi\ProviderBase implements BlogapiProviderInterface
- class \Drupal\blogapi_blogger\Plugin\BlogapiProvider\BloggerProvider
- class \Drupal\blogapi\ProviderBase implements BlogapiProviderInterface
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\BlogapiProviderView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BloggerProvider:: |
public static | function |
Returns implemented methods. Overrides ProviderBase:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |