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
functional
tests
app
Magento
Catalog
Test
Fixture
Category
LandingPage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Test\Fixture\Category
;
8
9
use Magento\Mtf\Fixture\DataSource;
10
use
Magento\Cms\Test\Fixture\CmsBlock
;
11
use Magento\Mtf\Fixture\FixtureFactory;
12
16
class
LandingPage
extends
DataSource
17
{
23
protected
$cmsBlock
=
null
;
24
31
public
function
__construct(FixtureFactory $fixtureFactory, array
$params
,
$data
= [])
32
{
33
$this->params =
$params
;
34
$this->data =
$data
;
35
36
if
(isset(
$data
[
'dataset'
])) {
38
$cmsBlock
= $fixtureFactory->createByCode(
'cmsBlock'
, [
'dataset'
=>
$data
[
'dataset'
]]);
39
if
(!
$cmsBlock
->getBlockId()) {
40
$cmsBlock
->persist();
41
}
42
43
$this->data =
$cmsBlock
->getTitle();
44
$this->cmsBlock =
$cmsBlock
;
45
}
46
}
47
53
public
function
getCmsBlock
()
54
{
55
return
$this->cmsBlock
;
56
}
57
}
Magento\Catalog\Test\Fixture\Category\LandingPage\$cmsBlock
$cmsBlock
Definition:
LandingPage.php:23
Magento\Cms\Test\Fixture\CmsBlock
Definition:
Stores.php:7
Magento\Catalog\Test\Fixture\Category
Definition:
CategoryProducts.php:7
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Catalog\Test\Fixture\Category\LandingPage
Definition:
LandingPage.php:16
Magento\Catalog\Test\Fixture\Category\LandingPage\getCmsBlock
getCmsBlock()
Definition:
LandingPage.php:53
$params
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition:
website.php:18