-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
Description
Since the constants in \Emico\AttributeLanding\Ui\Component\Listing\Column\PageActions are private, and late static binding is used in the code, the Interceptor class created by DI generator has no access to these constants. The Interceptor is created if there are any plugins on the parent classes or implemented interface, for example \Magento\Framework\View\Element\BlockInterface
Steps to reproduce
Go to the landing pages list page in the back office.
Expected result:
The list of landing pages is displayed
Actual result:
The page displays PHP errors.
Undefined constant Emico\AttributeLanding\Ui\Component\Listing\Column\PageActions\Interceptor::URL_PATH_EDIT
Undefined constant Emico\AttributeLanding\Ui\Component\Listing\Column\PageActions\Interceptor::URL_PATH_DUPLICATE
Exception in /var/www/html/vendor/emico/m2-attributelanding/src/Ui/Component/Listing/Column/PageActions.php:83
Possible solutions:
- don't use late static binding
- or make the constants
protected