CoreFiles by mySites.guru
mod_articles_latest.php18 lines, 656 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
bf5e66d41a853b60c8c95240106a9b86
sha1
575f65ca5ab9e48746b753efb92a6e9ffe62eabe
sha256
04f03bc47b82fa208c85fcacd0085be2ec0ca9fad239d9e6d72388dcab03f579
<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_articles_latest
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Helper\ModuleHelper;
use Joomla\Module\ArticlesLatest\Site\Helper\ArticlesLatestHelper;

$model = $app->bootComponent('com_content')->getMVCFactory()->createModel('Articles', 'Site', ['ignore_request' => true]);
$list = ArticlesLatestHelper::getList($params, $model);

require ModuleHelper::getLayoutPath('mod_articles_latest', $params->get('layout', 'default'));

The same content is in 5 releases, Joomla 4.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.