public function MarkupGenerator::parseMarkup in Heartbeat 8
Parameters
$url:
Return value
mixed
Overrides Parser::parseMarkup
File
- modules/
statusmessage/ src/ MarkupGenerator.php, line 45
Class
- MarkupGenerator
- Class MarkupGenerator.
Namespace
Drupal\statusmessageCode
public function parseMarkup($url) {
$url = strpos($url, 'http') ? 'http://' . $url : $url;
$url = !is_array($url) ? $url : array_values($url)[0];
$this->parsedMarkup = Embed::create($url);
return true;
}