You are here

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

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

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