Hi all,
Can anyone explain or point me to a link that explains the purpose of the IActionProvider interface.
I am looking at some way of linking modules together and was wondering if this interface might provide me with the mechanics of doing this.
Thanks
Paul
dagda1Can anyone explain or point me to a link that explains the purpose of the IActionProvider interface.
I am looking at some way of linking modules together and was wondering if this interface might provide me with the mechanics of doing this.
Yes, you're right with this. Take the existing SearchInputModule as an example. It implements IActionProvider and exposes one Action called 'Search' without any specific parameter. Then there is the SearchModule that implements IActionConsumer and can accept the same action. In the admin interface you can connect these two modules (from a section with a SearchInputModule to a section with a SearchModule). When adding a connection to a section, Cuyahoga tries to find other sections with IActionConsumer modules that have the signature as the IActionProvider.
Another example can be found in the UserModule that can connect to the ProfileModule.
Hope this helps.