t('Related'), ); } /** * Return true if the provider can parse correctly the user input * * @access public * @return boolean */ public function match() { if (strpos($this->userInput, '://') === false) { return false; } foreach ($this->excludedPrefixes as $prefix) { if (strpos($this->userInput, $prefix) === 0) { return false; } } return true; } /** * Get the link found with the properties * * @access public * @return \Kanboard\Core\ExternalLink\ExternalLinkInterface */ public function getLink() { $link = new FileLink($this->container); $link->setUrl($this->userInput); return $link; } }