Project

General

Profile

Actions

Feature #73752

closed

Allow accessing ObjectStorage as array in Fluid and other places

Added by Claus Due over 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2016-02-29
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
no-brainer
Sprint Focus:

Description

By creating an extremely simple aliasing of "toArray()" on ObjectStorage allowing it to be called as "getArray()" enables things like:

ObjectAccess::getPropertyPath($subject, 'objectstorageproperty.array.4') to get the 4th element

{myObject.objectstorageproperty.array.4} in Fluid (including {myObject.objectstorageproperty.array.{dynamicIndex}} in v8)

Actions

Also available in: Atom PDF