/** * @param string $url * * @return string */ private function validateURL($url) { return OpenGraph::isValidUrl($url, ['text/html', 'application/xhtml+xml']); }
/** * Check if OpenGraph is enabled * * @return bool */ public function isOpenGraphEnabled() { return $this->openGraph->isEnabled(); }