'index', ], // non-cacheable actions [ TeaController::class => '', ] ); ExtensionUtility::configurePlugin( 'Tea', 'TeaShow', [ TeaController::class => 'show', ], [ TeaController::class => '', ] ); // This makes the plugin available for front-end rendering. ExtensionUtility::configurePlugin( // extension name, matching the PHP namespaces (but without the vendor) 'Tea', // arbitrary, but unique plugin name (not visible in the BE) 'TeaFrontEndEditor', // all actions [ FrontEndEditorController::class => 'index, edit, update, create, new, delete', ], // non-cacheable actions [ // All actions need to be non-cacheable because they either contain dynamic data, // or because they are specific to the logged-in FE user (while FE content is cached by FE groups). FrontEndEditorController::class => 'index, edit, update, create, new, delete', ] ); // Combine TeaController and RatingController into a new Plugin ExtensionUtility::configurePlugin( 'Tea', 'TeaRating', [ TeaController::class => 'index', RatingController::class => 'filter,rating' ], [ TeaController::class => 'index', RatingController::class => 'rating,filter' ] );