CoreFiles by mySites.guru
SearchHelper.php36 lines, 755 bytes, from Joomla_4.0.0-alpha9-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha8
md5
ec280afd1fd6d4f7425f7c39587a8fc4
sha1
751eaa8a62d791537dd544b3391681e48ddc4ea2
sha256
64698c878702f29e6135fdfd4df549c454e9cf64c8e29c93b234fb6c76a6831b
<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_search
 *
 * @copyright   Copyright (C) 2005 - 2019 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-alpha7 to 4.0.0-alpha9. See them all, or every version of this file.