findCTypeBegin($params['record']['CType']); } public function findCTypeBegin($cType): bool { $found = false; foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['ew_base']['ContentUsedStrings'] ?? [] as $search) { if (str_contains($cType, $search)) { $found = true; break; } } return $found; } }