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 template files.
classPath(string $name)
Returns the filesystem path for plugin's folder containing class files.
string
$name name of the plugin in CamelCase format.
string
Path to the plugin folder containing class files.
Cake\Core\Exception\MissingPluginException
configPath(string $name)
Returns the filesystem path for plugin's folder containing config files.
string
$name name of the plugin in CamelCase format.
string
Path to the plugin folder containing config files.
Cake\Core\Exception\MissingPluginException
getCollection()
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)
Returns true if the plugin $plugin is already loaded.
string
$plugin Plugin name.
bool
loaded()
Return a list of loaded plugins.
string[]
A list of plugins that have been loaded
path(string $name)
Returns the filesystem path for a plugin
string
$name name of the plugin in CamelCase format
string
path to the plugin folder
Cake\Core\Exception\MissingPluginException
templatePath(string $name)
Returns the filesystem path for plugin's folder containing template files.
string
$name name of the plugin in CamelCase format.
string
Path to the plugin folder containing template files.
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.1/class-Cake.Core.Plugin.html