get($tableName); if (!$schema->hasField($fieldName)) { return false; } $fieldType = $schema->getField($fieldName); return $fieldType->isType(TableColumnType::SLUG) && GeneralUtility::inList($fieldType->getConfiguration()['eval'] ?? '', 'uniqueInSite'); } protected function hasSlugUniqueInSite(string $tableName, string ...$fieldNames): bool { foreach ($fieldNames as $fieldName) { if ($this->isSlugUniqueInSite($tableName, $fieldName)) { return true; } } return false; } }