CoreFiles by mySites.guru
FinderHelper.php47 lines, 1,057 bytes, from Joomla_4.4.2-Stable-Full_Package.zip
Raw History Compare with 4.4.1
md5
fb95be7ced7c47d83f02e48979edc064
sha1
b30b9723e17e10eee9b86ae4dac9cc2a8b02b377
sha256
dfd30c6a246e27943bbe3f04e849067f417ee84765ae7777b7a31fc33e9d2f03
<?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;

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

/**
 * 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 225 releases, Joomla 4.2.1 to 6.2.1-rc1. See them all, or every version of this file.