IMPR: Legacy pages
This commit is contained in:
parent
db5192e2bb
commit
2bbbb541c5
|
@ -65,4 +65,14 @@ class ObjectGraphQlEx extends Extension
|
||||||
// TODO: GraphQL form response /element/*id*/action
|
// TODO: GraphQL form response /element/*id*/action
|
||||||
return $req->requestVar('SecurityID') || $req->httpMethod() === 'POST' || preg_match('!element/([0-9]+)/([A-z]+)!', $req->getURL());
|
return $req->requestVar('SecurityID') || $req->httpMethod() === 'POST' || preg_match('!element/([0-9]+)/([A-z]+)!', $req->getURL());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isLegacy()
|
||||||
|
{
|
||||||
|
$object = $this->owner;
|
||||||
|
|
||||||
|
return $object->config()->get('legacy') || in_array($object->ClassName, [
|
||||||
|
RedirectorPage::class,
|
||||||
|
ErrorPage::class,
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue