Upgrade to 3.2.0

This commit is contained in:
Bastian Allgeier
2019-06-25 09:56:08 +02:00
parent 9e18cf635d
commit 9c89153d35
296 changed files with 14408 additions and 2504 deletions

View File

@@ -9,21 +9,22 @@ namespace Kirby\Cms;
*
* @package Kirby Cms
* @author Bastian Allgeier <bastian@getkirby.com>
* @link http://getkirby.com
* @copyright Bastian Allgeier
* @link https://getkirby.com
* @copyright Bastian Allgeier GmbH
* @license https://getkirby.com/license
*/
class Html extends \Kirby\Toolkit\Html
{
/**
* Generates an a tag with an absolute Url
* Generates an `a` tag with an absolute Url
*
* @param string $href Relative or absolute Url
* @param string|array|null $text If null, the link will be used as link text. If an array is passed, each element will be added unencoded
* @param string|array|null $text If `null`, the link will be used as link text. If an array is passed, each element will be added unencoded
* @param array $attr Additional attributes for the a tag.
* @return string
*/
public static function a(string $href = null, $text = null, array $attr = []): string
public static function link(string $href = null, $text = null, array $attr = []): string
{
return parent::a(Url::to($href), $text, $attr);
return parent::link(Url::to($href), $text, $attr);
}
}