mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Removing deprecated method
This commit is contained in:
parent
23e70009d8
commit
195ef05c8d
@ -1843,19 +1843,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
|
||||
return $items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the number of {@link DependentPages()}
|
||||
*
|
||||
* @deprecated 3.1 Use DependentPages()->Count() instead.
|
||||
*
|
||||
* @param bool $includeVirtuals Set to false to exlcude virtual pages.
|
||||
* @return ArrayList
|
||||
*/
|
||||
public function DependentPagesCount($includeVirtuals = true) {
|
||||
Deprecation::notice('3.1', 'Use SiteTree->DependentPages()->Count() instead.');
|
||||
return $this->DependentPages($includeVirtuals)->Count();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return all virtual pages that link to this page
|
||||
|
Loading…
Reference in New Issue
Block a user