public function returnUrlForEntity(Entity $entity) {
		return Router::url(
			[
				'plugin' => null,
				'prefix' => null,
				'controller' => $this->_table->alias(),
				'action' => 'view',
				$entity->{$this->_table->primaryKey()},
			],
			true
		);
	}
public function returnUrlForEntity(Entity $entity) {
		return Router::url(
			[
				'plugin' => null,
				'prefix' => null,
				'controller' => $this->_table->alias(),
				'action' => 'view',
				$entity->{$this->_table->primaryKey()},
			],
			true
		);
	}
public function returnUrlForEntity ( Entity $ entity ) { return Router :: url ( [ 'plugin' => null , 'prefix' => null , 'controller' => $ this -> _table -> alias ( ) , 'action' => 'view' , $ entity -> { $ this -> _table -> primaryKey ( ) } , ] , true ) ; }
Return the URL for the primary view action for an Entity.

@param \Cake\ORM\Entity $entity Entity object passed in to return the url for.
@return string Returns the URL string.
Return the URL for the primary view action for an Entity .