- Issue created by @ankitv18
- @ankitv18 opened merge request.
The current logic works, but it doesn't fully prevent deprecation warning. We should add an is_string() check to ensure $baseFormId is a string before calling str_ends_with():
$baseFormId = $form_object->getBaseFormId(); if (is_string($baseFormId) && str_ends_with($baseFormId, '_layout_builder_form')) { return FALSE; }