We need to add a custom macro that checks if the request came from Turbo Frame, similarly than what we do with the wantsTurboStream() andwasFromTurboNative().
This new one should take an option $id param. When nothing is passed to it, should return true if there's a Turbo-Frame header in the request. When an $id param is given, it should also check if the value of the Turbo-Frame header is equal to the given $id. Otherwise, it returns false.
We need to add a custom macro that checks if the request came from Turbo Frame, similarly than what we do with the
wantsTurboStream()
andwasFromTurboNative()
.This new one should take an option
$id
param. When nothing is passed to it, should return true if there's aTurbo-Frame
header in the request. When an$id
param is given, it should also check if the value of theTurbo-Frame
header is equal to the given$id
. Otherwise, it returns false.