MoviePage::onBeforeWrite
Overwrites default behaviour onBeforeWrite
This method sets the page name based on the selected MovieTitle. If no movie title exists, it will retain the existing page title (and navigation labels). It clears the URL Segment variable as the SiteTree::onBeforeWrite will determine a new url-segment based on the new page tile (which is the movie title).
Signature
protected function onBeforeWrite()