public function createViewLink($title, $options = [])
    {
        return $this->Html->link(
            $title,
            ['action' => 'view', $this->getContext()->get($this->getViewVar('primaryKey'))],
            $options
        );
    }
public function createViewLink($title, $options = [])
    {
        return $this->Html->link(
            $title,
            ['action' => 'view', $this->getContext()->get($this->getViewVar('primaryKey'))],
            $options
        );
    }
public function createViewLink ( $ title , $ options = [ ] ) { return $ this -> Html -> link ( $ title , [ 'action' => 'view' , $ this -> getContext ( ) -> get ( $ this -> getViewVar ( 'primaryKey' ) ) ] , $ options ) ; }
Create view link.

@param string $title Link title
@param array $options Options array to be passed to the link function
@return string
Create view link .