Conditions | 3 |
Paths | 4 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
52 | public function getLinkFieldValue(): string |
||
53 | { |
||
54 | return ( |
||
55 | $this->productMetadata->getEdition() !== ProductMetadata::EDITION_NAME |
||
56 | && version_compare($this->productMetadata->getVersion(), '2.1.0', '>=') |
||
57 | ) |
||
58 | ? 'entity_id' |
||
59 | : $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField(); |
||
60 | } |
||
61 | } |
||
62 |