protected function _createLink($toggle = null, $title = null, $url = null, $options = [], $optionsDefault = []) {
		if (empty($options)) {
			$options = [];
		}
		if (empty($optionsDefault)) {
			$optionsDefault = [];
		}

		if (!empty($toggle)) {
			$options['data-toggle'] = $toggle;
		}
		if (!empty($optionsDefault)) {
			$options += $optionsDefault;
		}

		return $this->Html->link($title, $url, $options);
	}
protected function _createLink($toggle = null, $title = null, $url = null, $options = [], $optionsDefault = []) {
		if (empty($options)) {
			$options = [];
		}
		if (empty($optionsDefault)) {
			$optionsDefault = [];
		}

		if (!empty($toggle)) {
			$options['data-toggle'] = $toggle;
		}
		if (!empty($optionsDefault)) {
			$options += $optionsDefault;
		}

		return $this->Html->link($title, $url, $options);
	}
protected function _createLink ( $ toggle = null , $ title = null , $ url = null , $ options = [ ] , $ optionsDefault = [ ] ) { if ( empty ( $ options ) ) { $ options = [ ] ; } if ( empty ( $ optionsDefault ) ) { $ optionsDefault = [ ] ; } if ( ! empty ( $ toggle ) ) { $ options [ 'data-toggle' ] = $ toggle ; } if ( ! empty ( $ optionsDefault ) ) { $ options += $ optionsDefault ; } return $ this -> Html -> link ( $ title , $ url , $ options ) ; }
Return link used with data-toggle attribute.

@param string $toggle Value of attribute `data-toggle` for `<a>` tags.
@param string $title The content to be wrapped by `<a>` tags.
@param string|array $url Cake-relative URL or array of URL parameters, or external URL (starts with http://)
@param array $options Array of options and HTML attributes.
@param array $optionsDefault Default HTML options for link element
@return string An `<a />` element.
@link http://ashleydw.github.io/lightbox
Return link used with data - toggle attribute .