Important: #87028 - Access objects from ObjectStorage
using numeric value¶
See forge#87028
Description¶
It is now possible to access the objects of an instance of \TYPO3\
using a numeric value.
The following code now works:
$objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
$objectStorage->attach(new \stdClass());
$myObject = $objectStorage->offsetGet(0);
Copied!
And more importantly, the following Fluid code works as well:
<f:image image="{myObject.resources.0}" alt="My image!" />
Copied!
Impact¶
The old way of getting information of an object in the storage still works as before.