CoreFiles by mySites.guru
FinderHelper.php43 lines, 950 bytes, from Joomla_4.2.1-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 4.2.1-rc1
md5
6b3f98b16e2b2c5c3c07b2b00be42e2e
sha1
540017324bdd1dca3cb6f5632a091e0eadd6f4bc
sha256
41bad81dbf66b6d2a42e648920139ba100e2a2feac9d35635400afcb6c2e5902
<?php

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

namespace Joomla\Component\Finder\Administrator\Helper;

use Joomla\CMS\Extension\ExtensionHelper;

/**
 * Helper class for Finder.
 *
 * @since  2.5
 */
class FinderHelper
{
    /**
     * The extension name.
     *
     * @var    string
     * @since  2.5
     */
    public static $extension = 'com_finder';

    /**
     * Gets the finder system plugin extension id.
     *
     * @return  integer  The finder system plugin extension id.
     *
     * @since   3.6.0
     */
    public static function getFinderPluginId()
    {
        $pluginRecord = ExtensionHelper::getExtensionRecord('finder', 'plugin', null, 'content');

        return $pluginRecord !== null ? $pluginRecord->extension_id : 0;
    }
}

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.