Back to Joomla project (class list)

Class ExtensionManagerTrait - list of methods

Trait for classes which can load extensions
Package: Joomla\CMS\Extension
Copyright: (C) 2018 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE
Located at: Joomla/Extension/ExtensionManagerTrait.php
Project: Joomla

Method Summary

public \Joomla\CMS\Extension\ComponentInterface
(mixed $component)

Boots the component with the given name.
Parameters
  • string $component The component to boot.
Returns
  • \Joomla\CMS\Extension\ComponentInterface
Since
  • 4.0.0
Show source code of this method: bootComponent Source Code

public \Joomla\CMS\Extension\ModuleInterface
(mixed $module, mixed $applicationName)

Boots the module with the given name.
Parameters
  • string $module The module to boot
  • string $applicationName The application name
Returns
  • \Joomla\CMS\Extension\ModuleInterface
Since
  • 4.0.0
Show source code of this method: bootModule Source Code

public \Joomla\CMS\Extension\PluginInterface
(mixed $plugin, mixed $type)

Boots the plugin with the given name and type.
Parameters
  • string $plugin The plugin name
  • string $type The type of the plugin
Returns
  • \Joomla\CMS\Extension\PluginInterface
Since
  • 4.0.0
Show source code of this method: bootPlugin Source Code

private \Joomla\CMS\Extension\ComponentInterface|\Joomla\CMS\Extension\ModuleInterface|\Joomla\CMS\Extension\PluginInterface
(mixed $type, mixed $extensionName, mixed $extensionPath)

Loads the extension.
Parameters
  • string $type The extension type
  • string $extensionName The extension name
  • string $extensionPath The path of the extension
Returns
  • \Joomla\CMS\Extension\ComponentInterface|\Joomla\CMS\Extension\ModuleInterface|\Joomla\CMS\Extension\PluginInterface
Since
  • 4.0.0
Show source code of this method: loadExtension Source Code

private \Joomla\CMS\Plugin\CMSPlugin
(string $plugin, string $type)

Creates a CMS plugin from the filesystem.
Parameters
  • string $plugin The plugin
  • string $type The type
Returns
  • \Joomla\CMS\Plugin\CMSPlugin
Since
  • 4.0.0
Show source code of this method: loadPluginFromFilesystem Source Code

protected \Joomla\DI\Container
()

Get the DI container.
Returns
  • \Joomla\DI\Container
Since
  • 4.0.0
-
  • \Joomla\DI\Exception\ContainerNotFoundException May be thrown if the container has not been set.
Show source code of this method: getContainer Source Code

Tags Summary

Since
4.0.0