Plugin is used to load and locate plugins.
It also can retrieve plugin paths and load their bootstrap and routes files.
Cake\Core\PluginCollection|null
Holds a list of all loaded plugins and their configuration
Returns the filesystem path for plugin's folder containing class files.
Returns the filesystem path for plugin's folder containing config files.
Get the shared plugin collection.
Returns true if the plugin $plugin is already loaded.
Return a list of loaded plugins.
Returns the filesystem path for a plugin
Returns the filesystem path for plugin's folder containing template files.
classPath(string $name): string
Returns the filesystem path for plugin's folder containing class files.
string
$name name of the plugin in CamelCase format.
string
Cake\Core\Exception\MissingPluginException
configPath(string $name): string
Returns the filesystem path for plugin's folder containing config files.
string
$name name of the plugin in CamelCase format.
string
Cake\Core\Exception\MissingPluginException
getCollection(): Cake\Core\PluginCollection
Get the shared plugin collection.
This method should generally not be used during application runtime as plugins should be set during Application startup.
Cake\Core\PluginCollection
isLoaded(string $plugin): bool
Returns true if the plugin $plugin is already loaded.
string
$plugin Plugin name.
bool
loaded(): array<string>
Return a list of loaded plugins.
array<string>
path(string $name): string
Returns the filesystem path for a plugin
string
$name name of the plugin in CamelCase format
string
Cake\Core\Exception\MissingPluginException
templatePath(string $name): string
Returns the filesystem path for plugin's folder containing template files.
string
$name name of the plugin in CamelCase format.
string
Cake\Core\Exception\MissingPluginException
Holds a list of all loaded plugins and their configuration
Cake\Core\PluginCollection|null
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.Core.Plugin.html