Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Feed Class Reference
Inheritance diagram for Feed:
FeedInterface

Public Member Functions

 __construct (array $data)
 
 getFormattedContent ()
 

Detailed Description

Default XML feed class

Definition at line 15 of file Feed.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( array  $data)

Feed constructor.

Parameters
array$data

Definition at line 26 of file Feed.php.

27  {
28  $this->feeds = $data;
29  }

Member Function Documentation

◆ getFormattedContent()

getFormattedContent ( )

{Returns the formatted feed content

Returns
string
}

Implements FeedInterface.

Definition at line 34 of file Feed.php.

34  : string
35  {
36  return FeedFactory::factory($this->feeds)->export(FeedFactoryInterface::FORMAT_RSS);
37  }

The documentation for this class was generated from the following file: