File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1313
1414namespace MonsieurBiz \SyliusSearchPlugin \Model \Documentable ;
1515
16- use Sylius \Component \Resource \Model \TranslatableInterface ;
16+ use Sylius \Component \Resource \Model \TranslatableInterface as OldTranslatableInterface ;
17+ use Sylius \Resource \Model \TranslatableInterface ;
1718
1819class Documentable implements PrefixedDocumentableInterface
1920{
@@ -68,7 +69,8 @@ public function isTranslatable(): bool
6869 {
6970 $ interface = (array ) class_implements ($ this ->getSourceClass ());
7071
71- return \in_array (TranslatableInterface::class, $ interface , true );
72+ return \in_array (TranslatableInterface::class, $ interface , true )
73+ || \in_array (OldTranslatableInterface::class, $ interface , true );
7274 }
7375
7476 public function getTemplate (string $ type ): ?string
You can’t perform that action at this time.
0 commit comments