registerResource( // This function will be called when the resource is needed. function() { return [ 'bar' => "Hello", ]; }, "requiredArgument", null ); };