SilverCommerce\CatalogueFrontend\Control\ModelAsController
Customise default @link ModelAsController to allow for finding and setting of catalogue categories or products.
Synopsis
class ModelAsController
extends ModelAsController
{
- // methods
- public static CatalogueController controller_for_object()
- public ContentController getNestedController()
Hierarchy
Extends
- SilverStripe\CMS\Controllers\ModelAsController
Tasks
Line | Task |
---|---|
77 | Refactor out module specific code |
Methods
public
- controller_for_object() — Get the appropriate {@link CatalogueProductController} or {@link CatalogueProductController} for handling the relevent object.
- getNestedController()