class MovabletypeProvider in Blog API 8
Class MovabletypeProvider.
@package Drupal\blogapi_movabletype\Plugin\BlogapiProvider
Plugin annotation
@Provider(
id = "MovabletypeProvider",
name = @Translation("Movable Type BlogAPI Provider")
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\blogapi\ProviderBase implements BlogapiProviderInterface
- class \Drupal\blogapi_movabletype\Plugin\BlogapiProvider\MovabletypeProvider
- class \Drupal\blogapi\ProviderBase implements BlogapiProviderInterface
Expanded class hierarchy of MovabletypeProvider
1 string reference to 'MovabletypeProvider'
- blogapi_movabletype_xmlrpc in modules/
blogapi_movabletype/ blogapi_movabletype.module - Implements hook_xmlrpc().
File
- modules/
blogapi_movabletype/ src/ Plugin/ BlogapiProvider/ MovabletypeProvider.php, line 17
Namespace
Drupal\blogapi_movabletype\Plugin\BlogapiProviderView source
class MovabletypeProvider extends ProviderBase {
/**
* Returns implemented methods.
*
* @return array
* Array of implemented methods.
*/
public static function getMethods() {
$methods = [
[
'mt.publishPost',
'blogapi_movabletype_publish_post',
[
'string',
'int',
'string',
'string',
],
'Publish (rebuild) all of the static files related to an entry from your blog. Equivalent to saving an entry in the system (but without the ping).',
],
[
'mt.getRecentPostTitles',
'blogapi_movabletype_get_recent_posts',
[
'string',
'string',
'string',
'string',
'int',
],
'Returns a bandwidth-friendly list of the most recent posts in the system.',
],
[
'mt.supportedTextFilters',
'blogapi_movabletype_text_filters',
[
'string',
],
'Retrieve information about the text formatting plugins supported by the server.',
],
[
'mt.getPostCategories',
'blogapi_movabletype_post_categories',
[
'string',
'string',
'string',
'string',
],
'Returns a list of all categories to which the post is assigned.',
],
[
'mt.getCategoryList',
'blogapi_movabletype_category_list',
[
'string',
'string',
'string',
'string',
],
'Returns a list of all categories defined in the blog.',
],
[
'mt.setPostCategories',
'blogapi_movabletype_set_categories',
[
'string',
'string',
'string',
'string',
'struct',
],
'Sets the categories for a post.',
],
[
'mt.supportedMethods',
'blogapi_movabletype_supported_methods',
[
'string',
],
'Retrieve information about the XML-RPC methods supported by the server.',
],
];
return $methods;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MovabletypeProvider:: |
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 |