SilverStripe\Admin\LeftAndMain::EditForm
Retrieves an edit form, either for display, or to process submitted data.
Also used in the template rendered through in the $EditForm placeholder. This is a "pseudo-abstract" methoed, usually connected to a method in an entwine subclass. This method can accept a record identifier, selected either in custom logic, or through . The form usually construct itself from for the specific managed subclass defined in .
Signature
public function EditForm([HTTPRequest
$request = NULL] )
Parameters
$request
— object- Passed if executing a HTTPRequest directly on the form.
If empty, this is invoked as $EditForm in the template
Returns
- Form
- Should return a form regardless wether a record has been found.
Form might be readonly if the current user doesn't have the permission to edit the record.