Renamed conflicting $object->getOriginal() to $object->getOriginalData()

This commit is contained in:
Matias Griese 2021-09-10 19:09:56 +03:00
parent 1350cf5675
commit 350134b256
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
* Added `route` and `request` to `onPageNotFound` event
* Added file upload/remove support for `Flex Forms`
* Added support for `flex-required@: not exists` and `flex-required@: '!exists'` in blueprints
* Added `$object->getOriginal()` to get flex objects data before it was modified with `update()`
* Added `$object->getOriginalData()` to get flex objects data before it was modified with `update()`
* Throwing exceptions from Twig templates fires `onDisplayErrorPage.[code]` event allowing better error pages
3. [](#bugfix)
* Fixed escaping in PageIndex::getLevelListing()

View File

@ -448,7 +448,7 @@ class FlexObject implements FlexObjectInterface, FlexAuthorizeInterface
*
* @return array
*/
public function getOriginal(): array
public function getOriginalData(): array
{
return $this->_original ?? [];
}