This commit is contained in:
f4ilji
2024-12-24 18:43:59 +05:00
parent 99e012d727
commit ed7ac493a0
9 changed files with 32 additions and 21 deletions
@@ -37,21 +37,7 @@ use Symfony\Component\Finder\Finder;
class PostForm
{
private static function findSeoActive(array $data) : bool
{
$bool = false;
foreach ($data as $item) {
if ($item['type'] !== 'paragraph') {
continue;
}
if ($item['data']['seo_active'] === true) {
$bool = true;
break;
}
}
return $bool;
}
public static function getForm(Form $form): Form
{
return $form