Override 3d party extension plugin method

Joomla Asked by Dmitry Zar on September 5, 2021

I found some errors in the code of a third-party system plugin,
it is assumed that the developer will release updates and fix them,
but for today I would like to fix them myself, for this I made my system plugin,
in which I want to fix these methods. Not the whole class, but the methods. It is supposed to use something like a decorator.
I understand that you need to do this in the system plugin and I did it. Can this be implemented in this way?

class PlgOverride extends PlgAnotherExtension
    public function fixMehodName($type, $data)
        // my code

        return parent::fixMehodName($type, $data);

The official documentation says about events through which you can influence, but everywhere we are talking about replacing the entire class and only about kernel files or components or modules and not plugins.

Add your own answers!

Related Questions

Add field to menu settings to output open graph image

1  Asked on December 30, 2021 by mano-meter


Edited css not updated in XAMPP

1  Asked on December 9, 2021 by advait-varma


Update from 3.9.x to 4.x

2  Asked on November 27, 2021 by lovntola


Other files overriding my template css with bootstrap?

1  Asked on November 19, 2021 by matthiasdunkel


Javascript accordion with anchors for joomla

1  Asked on November 5, 2021 by fruit_alchemist


Cannot Connect To MSSQL Server

3  Asked on September 5, 2021 by jamesmandatory


PlotALOT RSForm Query showing only one result

1  Asked on September 5, 2021 by gart


Getting module parameters in AJAX call using module id

1  Asked on September 5, 2021 by user1616338


Pop up AcyMailing subscription form

1  Asked on September 5, 2021 by ygiorgos


Override 3d party extension plugin method

0  Asked on September 5, 2021 by dmitry-zar


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP