Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Adapter.php
Go to the documentation of this file.
1 <?php
7 
13 {
17  protected $config;
18 
22  public function __construct(\Magento\Framework\Image\Adapter\ConfigInterface $config)
23  {
24  $this->config = $config;
25  }
26 
32  public function toOptionArray()
33  {
34  $result = [];
35  foreach ($this->config->getAdapters() as $alias => $adapter) {
36  $result[$alias] = __($adapter['title']);
37  }
38 
39  return $result;
40  }
41 }
__()
Definition: __.php:13
$adapter
Definition: webapi_user.php:16
__construct(\Magento\Framework\Image\Adapter\ConfigInterface $config)
Definition: Adapter.php:22
if(!trim($html)) $alias
Definition: details.phtml:20