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
magento2-base
dev
tests
integration
testsuite
Magento
Catalog
_files
catalog_category_with_slash.php
Go to the documentation of this file.
1
<?php
7
$category
=
\Magento\TestFramework\Helper\Bootstrap::getObjectManager
()->create(\
Magento
\Catalog\Model\Category::class);
8
$category
->isObjectNew(
true
);
9
$category
->setId(
10
3331
11
)->setCreatedAt(
12
'2017-06-23 09:50:07'
13
)->setName(
14
'Category with slash/ symbol'
15
)->setParentId(
16
2
17
)->setPath(
18
'1/2/3331'
19
)->setLevel(
20
2
21
)->setAvailableSortBy(
22
[
'position'
,
'name'
]
23
)->setDefaultSortBy(
24
'name'
25
)->setIsActive(
26
true
27
)->setPosition(
28
1
29
)->save();
$category
$category
Definition:
catalog_category_with_slash.php:7
Magento
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125