Event Timeline
Comment Actions
Try this:
array( 'aliases' => array( '_element' => 'language', '_type' => 'kvp', '_kvpkeyname' => 'id', 'uk' => array( '_element' => 'alias', array( 'language' => 'uk', 'value' => 'Airbus S.A.S', ), array( 'language' => 'uk', 'value' => 'Foo', ), ) ) )
(specifically, call ApiResult::setArrayType( $arr, 'kvp', 'id' ) or $apiResult->addArrayType( $path, 'kvp', 'id' ) to set the '_type' and '_kvpkeyname' metadata)
Comment Actions
Awesome!
This is basically exactly that I was looking for (I think) but have never used these meta bits before!