- md5
- adab7b4e939d760fd47ad0a15338cc0e
- sha1
- ace23f0eaba624bd1d0302fb3511c323ffeae318
- sha256
- 0963d61594737a3f3ba9f93d568435c3294081380f09e729077f64e34dfceee3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
<?php
/**
* @package Joomla.Plugin
* @subpackage Installer.urlinstaller
*
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Plugin\Installer\Url\Extension;
use Joomla\CMS\Event\Installer\AddInstallationTabEvent;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\Event\SubscriberInterface;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* UrlFolderInstaller Plugin.
*
* @since 3.6.0
*/
final class UrlInstaller extends CMSPlugin implements SubscriberInterface
{
/**
* Returns an array of events this subscriber will listen to.
*
* @return array
*
* @since 5.0.0
*/
public static function getSubscribedEvents(): array
{
return ['onInstallerAddInstallationTab' => 'onInstallerAddInstallationTab'];
}
/**
* Installer add Installation Tab listener.
*
* @param AddInstallationTabEvent $event The event instance
*
* @return void
*
* @since 3.6.0
*/
public function onInstallerAddInstallationTab(AddInstallationTabEvent $event)
{
// Load language files
$this->loadLanguage();
$tab = [];
$tab['name'] = 'url';
$tab['label'] = $this->getApplication()->getLanguage()->_('PLG_INSTALLER_URLINSTALLER_TEXT');
// Render the input
ob_start();
include PluginHelper::getLayoutPath('installer', 'urlinstaller');
$tab['content'] = ob_get_clean();
$event->addResult($tab);
}
}
The same content is in 50 releases, Joomla 6.0.0-alpha1 to 6.2.1-rc1. See them all, or every version of this file.