CoreFiles by mySites.guru
StepController.php43 lines, 1,055 bytes, from Joomla_5.3.4-Stable-Full_Package.zip
Raw History Compare with 5.3.3
md5
5554aa2b0e160efb0404ef1c3f8a6043
sha1
3f6d3f4cc102068841236d5cb1a4736f7eafa555
sha256
d5f62a5edc22f982de6b2bfebfe2355a9ebca988d69c62ace691543bc3fb15a9
<?php

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

namespace Joomla\Component\Guidedtours\Administrator\Controller;

use Joomla\CMS\MVC\Controller\FormController;

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

/**
 * Controller for a single step
 *
 * @since 4.3.0
 */
class StepController extends FormController
{
    /**
     * Gets the URL arguments to append to a list redirect.
     *
     * @return  string  The arguments to append to the redirect URL.
     *
     * @since  5.2.2
     */
    protected function getRedirectToListAppend()
    {
        $append = parent::getRedirectToListAppend();
        $tourId = $this->app->getUserState('com_guidedtours.tour_id');
        if (!empty($tourId)) {
            $append .= '&tour_id=' . $tourId;
        }

        return $append;
    }
}

The same content is in 105 releases, Joomla 5.2.2-rc1 to 6.2.1-rc1. See them all, or every version of this file.