public function BlogapiCommunicator::getDefaultFormat in Blog API 8
Returns the default text format ID.
Parameters
$user: Drupal user object.
Return value
array|mixed|null|string Return the text format ID.
2 calls to BlogapiCommunicator::getDefaultFormat()
- BlogapiCommunicator::formatXml in src/
BlogapiCommunicator.php - Helper function to format xml output.
- BlogapiCommunicator::getValidTextFormat in src/
BlogapiCommunicator.php - Try and load a default text format if the passed one doesn't exist.
File
- src/
BlogapiCommunicator.php, line 582
Class
- BlogapiCommunicator
- Class BlogapiCommunicator.
Namespace
Drupal\blogapiCode
public function getDefaultFormat($user) {
$format_load = $this->blogapiConfig
->get('text_format');
if ($format_load) {
return $format_load;
}
return filter_default_format($user);
}