function blogapi_metaweblog_new_media in Blog API 8
Callback for metaWeblog.newMediaObject.
Parameters
$ct: Content type machine name.
$username: Drupal username.
$pass: Drupal password.
$data: The image contents.
Return value
array|object BlogAPI response.
1 string reference to 'blogapi_metaweblog_new_media'
- MetaweblogProvider::getMethods in modules/
blogapi_metaweblog/ src/ Plugin/ BlogapiProvider/ MetaweblogProvider.php - Returns implemented methods.
File
- modules/
blogapi_metaweblog/ blogapi_metaweblog.module, line 131 - Module file for blogapi_blogger.
Code
function blogapi_metaweblog_new_media($ct, $username, $pass, $data) {
$communicator = \Drupal::service('service.communicator.blogapi');
return $communicator
->newMedia($ct, $username, $pass, $data);
}