protected function getFieldDescriptors($locale, $all = true) { return $this->get('sulu_core.list_builder.field_descriptor_factory')->getFieldDescriptorForClass($this->getParameter('sulu.model.media.class'), ['locale' => $locale], $all ? null : DoctrineFieldDescriptorInterface::class); }