CoreFiles by mySites.guru
folderinstaller.php59 lines, 1,394 bytes, from Joomla_4.2.5-Stable-Full_Package.zip
Raw History Compare with 4.2.4
md5
443ae70ece299192100b1a1c3618535b
sha1
d312bf67da34671d5d924e0ed998f20d97e8940b
sha256
e3b6352074f94bc540ea77aa3cc9639de2759a708c77d276744abe90eb43e097
<?php

/**
 * @package     Joomla.Plugin
 * @subpackage  Installer.folderInstaller
 *
 * @copyright   (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt

 * @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace
 */

use Joomla\CMS\Language\Text;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Plugin\PluginHelper;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * FolderInstaller Plugin.
 *
 * @since  3.6.0
 */
class PlgInstallerFolderInstaller extends CMSPlugin
{
    /**
     * Application object.
     *
     * @var    \Joomla\CMS\Application\CMSApplication
     * @since  4.0.0
     */
    protected $app;

    /**
     * Textfield or Form of the Plugin.
     *
     * @return  array  Returns an array with the tab information
     *
     * @since   3.6.0
     */
    public function onInstallerAddInstallationTab()
    {
        // Load language files
        $this->loadLanguage();

        $tab            = array();
        $tab['name']    = 'folder';
        $tab['label']   = Text::_('PLG_INSTALLER_FOLDERINSTALLER_TEXT');

        // Render the input
        ob_start();
        include PluginHelper::getLayoutPath('installer', 'folderinstaller');
        $tab['content'] = ob_get_clean();

        return $tab;
    }
}

The same content is in 11 releases, Joomla 4.2.1 to 4.3.0-alpha2. See them all, or every version of this file.