| @@ 65-72 (lines=8) @@ | ||
| 62 | * @param View $View |
|
| 63 | * @param array $config |
|
| 64 | */ |
|
| 65 | public function __construct(View $View, array $config = []) |
|
| 66 | { |
|
| 67 | parent::__construct($View, $config); |
|
| 68 | $this->_configWrite('btnPref', Configure::read('Cms.btnPref')); |
|
| 69 | $this->_configWrite('iconPref', Configure::read('Cms.iconPref')); |
|
| 70 | $this->_configWrite('classPrefix', Configure::read('Cms.classPrefix')); |
|
| 71 | $this->_configWrite('templates.icon', '<i class="{{class}}"{{attrs}}></i>'); |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * Get sort assets included list. |
|
| @@ 65-71 (lines=7) @@ | ||
| 62 | * @param View $View |
|
| 63 | * @param array $config |
|
| 64 | */ |
|
| 65 | public function __construct(View $View, array $config = []) |
|
| 66 | { |
|
| 67 | parent::__construct($View, $config); |
|
| 68 | $this->_configWrite('btnPref', Configure::read('Cms.btnPref')); |
|
| 69 | $this->_configWrite('iconPref', Configure::read('Cms.iconPref')); |
|
| 70 | $this->_configWrite('classPrefix', Configure::read('Cms.classPrefix')); |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * Creates a `<button>` tag. |
|