CoreFiles by mySites.guru
SearchHelper.php36 lines, 755 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
c21232e96ab6d2de949fbc27d95636a0
sha1
a2750a4379cda32afb86fe78de6c8b24496a85dd
sha256
9d5934ea249b06c519a1f340f59cf4f7162f15323e4a8bce7d4a0cc475698f7a
<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_search
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Module\Search\Site\Helper;

defined('_JEXEC') or die;

use Joomla\CMS\HTML\HTMLHelper;

/**
 * Helper for mod_search
 *
 * @since  1.5
 */
class SearchHelper
{
	/**
	 * Display the search button as an image.
	 *
	 * @param   string  $button_text  The alt text for the button.
	 *
	 * @return  string  The HTML for the image.
	 *
	 * @since   1.5
	 */
	public static function getSearchImage($button_text)
	{
		return HTMLHelper::_('image', 'searchButton.gif', $button_text, null, true, true);
	}
}

The same content is in 3 releases, Joomla 4.0.0-alpha3 to 4.0.0-alpha6. See them all, or every version of this file.