You are here

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

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\BlogapiProvider
View 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

Namesort descending Modifiers Type Description Overrides
MovabletypeProvider::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