function blogapi_metaweblog_get_categories in Blog API 8
Same name and namespace in other branches
- 7.2 modules/blogapi_metaweblog/blogapi_metaweblog.module \blogapi_metaweblog_get_categories()
Callback for metaWeblog.getCategories.
Parameters
$nid: The node ID.
$username: Drupal username.
$pass: Drupal password.
Return value
mixed BlogAPI response.
1 string reference to 'blogapi_metaweblog_get_categories'
- MetaweblogProvider::getMethods in modules/
blogapi_metaweblog/ src/ Plugin/ BlogapiProvider/ MetaweblogProvider.php - Returns implemented methods.
File
- modules/
blogapi_metaweblog/ blogapi_metaweblog.module, line 200 - Module file for blogapi_blogger.
Code
function blogapi_metaweblog_get_categories($nid, $username, $pass) {
$communicator = \Drupal::service('service.communicator.blogapi');
return $communicator
->getNodeCategories($nid, $username, $pass);
}