How to get object from File field type
kiger - 6 months ago
Hello everybody! I created a widget that stores a file. The problem is that I cannot get the File Object from the ConfigurationRepositoryInterface, I use the $configuration->get('kiger.extension.sections_widget::xmlfile', $this->widget->getId()) method but I only get the file's Id. Please help, what is the correct method to obtain the file? I know that with FileRepositoryInterface I can find the file ($files->find($xmlfile->getValue())) but I think it's not the correct way. Thanks.