SilverStripe\Blog\Model\BlogPost::onBeforePublish
{@inheritdoc}
Update the PublishDate to now if the BlogPost would otherwise be published without a date.
Signature
public function onBeforePublish()
Update the PublishDate to now if the BlogPost would otherwise be published without a date.
public function onBeforePublish()