Load a plugin in a new custom plugin

It is possible to load a 3rd party plugin (like FriendsOfCake/search) in my new custom plugin? How can I do that?

Put that in your plugins/MyCustomPlugin/src/Plugin.php

public function bootstrap(\Cake\Core\PluginApplicationInterface $app): void {
    $app->addPlugin('SomeOtherPlugin');
}

Thanks, @KevinPfeifer I have successfully learned how to load a plugin. Your method totally works.

1 Like