public function link($icon, $title, $url = null, $options = [], $confirmMessage = false)
    {
        $escapeTitle = true;
        if (isset($options['escapeTitle'])) {
            $escapeTitle = $options['escapeTitle'];
            unset($options['escapeTitle']);
        } elseif (isset($options['escape'])) {
            $escapeTitle = $options['escape'];
        }

        if ($escapeTitle === true) {
            $title = h($title);
        } elseif (is_string($escapeTitle)) {
            $title = htmlentities($title, ENT_QUOTES, $escapeTitle);
        }

        // Append/Prepend the Font Awesome icon.
        if (empty($title)) {
            $title = '<i class="fa fa-' . $icon . '"></i>';
        } elseif (empty($options['before'])) {
            $title .= ' <i class="fa fa-' . $icon . '" aria-hidden="true"></i>';
        } else {
            $title = '<i class="fa fa-' . $icon . '" aria-hidden="true"></i> ' . $title;
        }
        unset($options['before']);

        $options['escape'] = false;

        return $this->Html->link($title, $url, $options, $confirmMessage);
    }