for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Extends {@see GridFieldDetailForm}
*/
class VersionedGridFieldDetailForm extends Extension {
public function updateItemRequestClass(&$class, $gridField, $record, $requestHandler) {
$gridField
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$requestHandler
// Conditionally use a versioned item handler
if($record && $record->has_extension('Versioned')) {
$class = 'VersionedGridFieldItemRequest';
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.