code/pages/WikiPage.php
public function StatusForm() {
		$existing = $this->getEditingLocks($this->data());

		if ($existing && $existing['user'] != Member::currentUser()->Email) {
			$fields = FieldList::create(
							new ReadonlyField('ExistingEditor', '', _t('WikiPage.EXISTINGEDITOR', 'This page is currently locked for editing by ' . $existing['user'] . ' until ' . $existing['expires']))
			);
			$actions = FieldList::create();
		} else {
			$fields = FieldList::create();
			$actions = FieldList::create(
							new FormAction('startediting', _t('WikiPage.STARTEDIT', 'Edit Page'))
			);
		}

		return new Form($this, 'StatusForm', $fields, $actions);
	}
public function StatusForm() {
		$existing = $this->getEditingLocks($this->data());

		if ($existing && $existing['user'] != Member::currentUser()->Email) {
			$fields = FieldList::create(
							new ReadonlyField('ExistingEditor', '', _t('WikiPage.EXISTINGEDITOR', 'This page is currently locked for editing by ' . $existing['user'] . ' until ' . $existing['expires']))
			);
			$actions = FieldList::create();
		} else {
			$fields = FieldList::create();
			$actions = FieldList::create(
							new FormAction('startediting', _t('WikiPage.STARTEDIT', 'Edit Page'))
			);
		}

		return new Form($this, 'StatusForm', $fields, $actions);
	}
public function StatusForm ( ) { $ existing = $ this -> getEditingLocks ( $ this -> data ( ) ) ; if ( $ existing && $ existing [ 'user' ] != Member :: currentUser ( ) -> Email ) { $ fields = FieldList :: create ( new ReadonlyField ( 'ExistingEditor' , '' , _t ( 'WikiPage.EXISTINGEDITOR' , 'This page is currently locked for editing by ' . $ existing [ 'user' ] . ' until ' . $ existing [ 'expires' ] ) ) ) ; $ actions = FieldList :: create ( ) ; } else { $ fields = FieldList :: create ( ) ; $ actions = FieldList :: create ( new FormAction ( 'startediting' , _t ( 'WikiPage.STARTEDIT' , 'Edit Page' ) ) ) ; } return new Form ( $ this , 'StatusForm' , $ fields , $ actions ) ; }
Gets the status form that is used by users to trigger the editing mode
if they have the relevant access to it.

@return Form
Gets the status form that is used by users to trigger the editing mode if they have the relevant access to it .