Add comment why I am extending the controller

This commit is contained in:
Juan José González 2023-03-01 12:40:30 +01:00
parent 55fedab565
commit ee629e44cd
1 changed files with 3 additions and 1 deletions

View File

@ -907,7 +907,9 @@ class Comment extends DataObject
return null;
}
// Build update controller
// Allow extending the controller here to receive controllers
// created by other extensions building on top of Comments
// eg. silverstripe-reviews
$extended_controller = $this->extend('updateController');
$extended_controller = $extended_controller ? $extended_controller[0] : null;