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
framework
App
Feed.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Framework\App
;
9
10
use Zend\Feed\Writer\FeedFactory;
11
15
class
Feed
implements
FeedInterface
16
{
20
private
$feeds;
21
26
public
function
__construct
(array
$data
)
27
{
28
$this->feeds =
$data
;
29
}
30
34
public
function
getFormattedContent
() : string
35
{
36
return
FeedFactory::factory($this->feeds)->export(
FeedFactoryInterface::FORMAT_RSS
);
37
}
38
}
Magento\Framework\App
Magento\Framework\App\Feed
Definition:
Feed.php:15
Magento\Framework\App\FeedFactoryInterface\FORMAT_RSS
const FORMAT_RSS
Definition:
FeedFactoryInterface.php:18
Magento\Framework\App\Feed\__construct
__construct(array $data)
Definition:
Feed.php:26
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\App\FeedInterface
Definition:
FeedInterface.php:13
Magento\Framework\App\Feed\getFormattedContent
getFormattedContent()
Definition:
Feed.php:34