Skip to content

Commit

Permalink
re-introduce getDocumentSets() as deprecated method to allow patch re…
Browse files Browse the repository at this point in the history
…lease
  • Loading branch information
xini committed Apr 11, 2018
1 parent 86e01cb commit 1c22623
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions code/extensions/DMSSiteTreeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@ public function updateCMSFields(FieldList $fields)
));
}

/**
* 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
*
Expand Down

0 comments on commit 1c22623

Please sign in to comment.