I need to override the public function getValue(\Magento\Framework\DataObject $object) in the Magento\Eav\Model\Entity\Attribute\Frontend\AbtsractFrontend.
Can anyone tell me how to do it using a plugin (or a different way)?


You don't need a plugin for that, a preference is enough you set it into the di.xml and then compile again

<preference for="Magento\Eav\Model\Entity\Attribute\Frontend\AbtsractFrontend" type="Project\Module\Model\....whateverlinkyouwant\YourCustomAbstractFrontend" />

You write your own class YourCustomAbstractFrontend which extends AbtsractFrontend and insode you can write your own method implementation for getValue()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.