Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
SourcePool Class Reference

Public Member Functions

 __construct (array $sources)
 
 getAll ()
 
 getSource ($name)
 

Detailed Description

Configurable (via di.xml) pool of available sources of static files eligible for deployment

Definition at line 11 of file SourcePool.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( array  $sources)

SourcePool constructor.

Parameters
array$sources

Definition at line 24 of file SourcePool.php.

25  {
26  $this->sources = $sources;
27  }

Member Function Documentation

◆ getAll()

getAll ( )

Retrieve static files sources

Returns
SourceInterface[]

Definition at line 34 of file SourcePool.php.

35  {
36  return $this->sources;
37  }

◆ getSource()

getSource (   $name)

Retrieve source

Parameters
string$name
Returns
SourceInterface|null

Definition at line 45 of file SourcePool.php.

46  {
47  return isset($this->sources[$name]) ? $this->sources[$name] : null;
48  }
if(!isset($_GET['name'])) $name
Definition: log.php:14

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