re-introduce getDocumentSets() as deprecated method to allow patch release

This commit is contained in:
Florian Thoma 2018-04-11 10:34:52 +10:00
parent 86e01cb6d1
commit 1c226239f4
1 changed files with 13 additions and 0 deletions

View File

@ -52,6 +52,19 @@ class DMSSiteTreeExtension extends DataExtension
));
}
/**
* Get a list of document sets for the owner page
*
* @deprecated 3.0 Use DocumentSets() instead.
*
* @return ArrayList
*/
public function getDocumentSets()
{
Deprecation::notice('3.0', 'Use DocumentSets() instead');
return $this->owner->hasManyComponent('DocumentSets');
}
/**
* Get a list of all documents from all document sets for the owner page
*