CoreFiles by mySites.guru
crop.php53 lines, 1,164 bytes, from Joomla_4.2.3-Stable-Full_Package.zip
Raw History Compare with 4.2.2
md5
b6901d563d97009b0d8e9bd2aee75c1b
sha1
86f0ab12324d036535a40ea8890704654adf4acb
sha256
628b9ff3d328ac5804834d4bbcc50f469b44bb579718c5beb8a78df8efa58e44
<?php

/**
 * @package     Joomla.Plugin
 * @subpackage  Media-Action.crop
 *
 * @copyright   (C) 2017 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\Factory;

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

/**
 * Media Manager Crop Action
 *
 * @since  4.0.0
 */
class PlgMediaActionCrop extends \Joomla\Component\Media\Administrator\Plugin\MediaActionPlugin
{
    /**
     * Load the javascript files of the plugin.
     *
     * @return  void
     *
     * @since   4.0.0
     */
    protected function loadJs()
    {
        parent::loadJs();

        Factory::getApplication()->getDocument()->getWebAssetManager()->useScript('cropperjs');
    }

    /**
     * Load the CSS files of the plugin.
     *
     * @return  void
     *
     * @since   4.0.0
     */
    protected function loadCss()
    {
        parent::loadCss();

        Factory::getApplication()->getDocument()->getWebAssetManager()->useStyle('cropperjs');
    }
}

The same content is in 33 releases, Joomla 4.2.1 to 4.3.4. See them all, or every version of this file.