public function ViewAllLink() {
		if($grid = $this->getGrid()) {
			return Controller::join_links(
				Injector::inst()->get("CMSMain")->Link("edit"),
				"show",
				$this->SubjectPageID
			)."#Root_".$this->getTabForGrid();
		}
	}
public function ViewAllLink() {
		if($grid = $this->getGrid()) {
			return Controller::join_links(
				Injector::inst()->get("CMSMain")->Link("edit"),
				"show",
				$this->SubjectPageID
			)."#Root_".$this->getTabForGrid();
		}
	}
public function ViewAllLink ( ) { if ( $ grid = $ this -> getGrid ( ) ) { return Controller :: join_links ( Injector :: inst ( ) -> get ( "CMSMain" ) -> Link ( "edit" ) , "show" , $ this -> SubjectPageID ) . "#Root_" . $ this -> getTabForGrid ( ) ; } }
Gets the link to view all records in a GridField

@return string
Gets the link to view all records in a GridField