Typo3 8.7에서 사용자 정의 컨텐츠 요소에 대한 BackendPreview에서 다음 코드를 사용하여 컨텐츠 클래스를 얻으려고합니다.Typo3 BackendPreview get cObj throws : null에 enableFields()를 호출합니다.
$conf = array(
'tables' => 'tt_content',
'source' => $uid,
'dontCheckPid' => 1
);
$this->objectManager = GeneralUtility::makeInstance(ObjectManager::class);
$result = $this->objectManager->get(RecordsContentObject::class)->render($conf);
frontendContext에서이 작업을 수행하면 예상대로 cObj가 반환되지만 BE 컨텍스트에서는 typo3에서 "null의 멤버 함수 enableFields() 호출"예외가 발생합니다.
나는 configurationManager를 수동으로 초기화하려고했지만 효과가 없습니다.
누구나 아이디어가 있으십니까?