CoreFiles by mySites.guru
FinderHelper.php44 lines, 914 bytes, from Joomla_4.1.5-Stable-Full_Package.zip
Raw History Compare with 4.1.4
md5
cc2b002c08d57c72389cff115dfe8e22
sha1
efc22bb6d60e81854bca55934359bec3c6e58fe6
sha256
bdb1104dc2908f8adc55caadb9b750715af21abd90ce6d612e14ca90f2d078b5
<?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;

\defined('_JEXEC') or die;

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 46 releases, Joomla 4.0.0-rc4 to 4.2.0-beta2. See them all, or every version of this file.