Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-eav
Model
Entity
Attribute
Backend
Increment.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Eav\Model\Entity\Attribute\Backend
;
7
14
class
Increment
extends
\Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend
15
{
22
public
function
beforeSave
($object)
23
{
24
if
(!$object->getId()) {
25
$this->
getAttribute
()->getEntity()->setNewIncrementId($object);
26
}
27
28
return
$this;
29
}
30
}
Magento\Eav\Model\Entity\Attribute\Backend
Definition:
AbstractBackend.php:7
Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend\getAttribute
getAttribute()
Definition:
AbstractBackend.php:81
Magento\Eav\Model\Entity\Attribute\Backend\Increment\beforeSave
beforeSave($object)
Definition:
Increment.php:22
Magento\Eav\Model\Entity\Attribute\Backend\Increment
Definition:
Increment.php:14