class MetaweblogProvider in Blog API 8
Class MetaweblogProvider.
@package Drupal\blogapi_metaweblog\Plugin\BlogapiProvider
Plugin annotation
@Provider(
id = "MetaweblogProvider",
name = @Translation("metaWeblog BlogAPI Provider")
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\blogapi\ProviderBase implements BlogapiProviderInterface
- class \Drupal\blogapi_metaweblog\Plugin\BlogapiProvider\MetaweblogProvider
- class \Drupal\blogapi\ProviderBase implements BlogapiProviderInterface
Expanded class hierarchy of MetaweblogProvider
1 string reference to 'MetaweblogProvider'
- blogapi_metaweblog_xmlrpc in modules/
blogapi_metaweblog/ blogapi_metaweblog.module - Returns implemented methods.
File
- modules/
blogapi_metaweblog/ src/ Plugin/ BlogapiProvider/ MetaweblogProvider.php, line 17
Namespace
Drupal\blogapi_metaweblog\Plugin\BlogapiProviderView source
class MetaweblogProvider extends ProviderBase {
/**
* Returns implemented methods.
*
* @return array
* Array of implemented methods.
*/
public static function getMethods() {
$methods = [
[
'metaWeblog.getRecentPosts',
'blogapi_metaweblog_get_recent_posts',
[
'string',
'string',
'string',
'string',
'int',
],
'Returns a list of the most recent posts in the system.',
],
[
'metaWeblog.editPost',
'blogapi_metaweblog_edit_post',
[
'string',
'string',
'string',
'string',
'struct',
'boolean',
],
'Updates information about an existing post.',
],
[
'metaWeblog.newPost',
'blogapi_metaweblog_new_post',
[
'string',
'string',
'string',
'string',
'struct',
'boolean',
],
'Updates information about an existing post.',
],
[
'metaWeblog.newMediaObject',
'blogapi_metaweblog_new_media',
[
'string',
'string',
'string',
'string',
'struct',
],
'Uploads a file to your server.',
],
[
'metaWeblog.getPost',
'blogapi_metaweblog_get_post',
[
'string',
'string',
'string',
'string',
],
'Returns information about a specific post.',
],
[
'metaWeblog.getCategories',
'blogapi_metaweblog_get_categories',
[
'string',
'string',
'string',
'string',
],
'Returns a list of all categories to which the post is assigned.',
],
];
return $methods;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MetaweblogProvider:: |
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 |