Skip to content

Commit

Permalink
Made getManagedModels extensible
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn committed Nov 25, 2016
1 parent d3cb1b4 commit c0ef945
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions code/admin/YearCalendarAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,16 @@ public function getEditForm($id = null, $fields = null)

return $form;
}

/**
* @inheritdoc
*/
public function getManagedModels()
{
$models = parent::getManagedModels();

$this->extend('modifyManagedModels', $models);

return $models;
}
}

0 comments on commit c0ef945

Please sign in to comment.