Add updateURL extension hook to File::getURL

This commit is contained in:
Jacob Buck 2017-06-05 15:17:37 +12:00
parent 035a9b049e
commit 2305255699

View File

@ -719,7 +719,8 @@ class File extends DataObject {
* @return string
*/
public function getURL() {
return Controller::join_links(Director::baseURL(), $this->getFilename());
$url = Controller::join_links(Director::baseURL(), $this->getFilename());
return $this->extend('updateURL', $url);
}
/**