public function getSelfSubUrl($entity = null)
    {
        if ($entity === null) {
            return null;
        }

        return Router::url($this->_getRepositoryRoutingParameters($this->_repository) + [
            '_method' => 'GET',
            'action' => 'view',
            $entity->get($this->_repository->getPrimaryKey()),
        ], $this->_view->viewVars['_absoluteLinks']);
    }
public function getSelfSubUrl($entity = null)
    {
        if ($entity === null) {
            return null;
        }

        return Router::url($this->_getRepositoryRoutingParameters($this->_repository) + [
            '_method' => 'GET',
            'action' => 'view',
            $entity->get($this->_repository->getPrimaryKey()),
        ], $this->_view->viewVars['_absoluteLinks']);
    }
public function getSelfSubUrl ( $ entity = null ) { if ( $ entity === null ) { return null ; } return Router :: url ( $ this -> _getRepositoryRoutingParameters ( $ this -> _repository ) + [ '_method' => 'GET' , 'action' => 'view' , $ entity -> get ( $ this -> _repository -> getPrimaryKey ( ) ) , ] , $ this -> _view -> viewVars [ '_absoluteLinks' ] ) ; }
NeoMerx override used to generate `self` links

@param \Cake\ORM\Entity|null $entity Entity, null only to be compatible with the Neomerx method
@return string|null
NeoMerx override used to generate self links