Open GuySartorelli opened 1 month ago
The ViewableData::Me() method just returns $this. It only exists as a way for the template layer to refer to the current item in scope. This should be moved into the template layer.
ViewableData::Me()
$this
I originally did this as part of https://github.com/silverstripe/silverstripe-framework/pull/11244 but I had to remove it (see https://github.com/silverstripe/silverstripe-framework/compare/f9e757a0a201799dbb1d2535c90e2cb309982026..29793a31415d01c4173cb560e7d97f399d270971) because it was causing some failures in the kitchen sink.
Me()
$Me
The
ViewableData::Me()
method just returns$this
. It only exists as a way for the template layer to refer to the current item in scope. This should be moved into the template layer.I originally did this as part of https://github.com/silverstripe/silverstripe-framework/pull/11244 but I had to remove it (see https://github.com/silverstripe/silverstripe-framework/compare/f9e757a0a201799dbb1d2535c90e2cb309982026..29793a31415d01c4173cb560e7d97f399d270971) because it was causing some failures in the kitchen sink.
Acceptance criteria
Me()
method is refactored to not rely on that method.ViewableData::Me()
method is removed$Me
in a template behaves identically to how it currently doesPRs