nystudio107 /
craft-seomatic
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * SEOmatic plugin for Craft CMS |
||
| 4 | * |
||
| 5 | * A turnkey SEO implementation for Craft CMS that is comprehensive, powerful, |
||
| 6 | * and flexible |
||
| 7 | * |
||
| 8 | * @link https://nystudio107.com |
||
| 9 | * @copyright Copyright (c) 2017 nystudio107 |
||
| 10 | */ |
||
| 11 | |||
| 12 | namespace nystudio107\seomatic\models; |
||
| 13 | |||
| 14 | use nystudio107\seomatic\base\Container as SeomaticContainer; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @author nystudio107 |
||
| 18 | * @package Seomatic |
||
| 19 | * @since 3.0.0 |
||
| 20 | */ |
||
| 21 | class FrontendTemplateContainer extends SeomaticContainer |
||
| 22 | { |
||
| 23 | // Constants |
||
| 24 | // ========================================================================= |
||
| 25 | |||
| 26 | public const CONTAINER_TYPE = 'FrontendTemplateContainer'; |
||
| 27 | |||
| 28 | // Public Properties |
||
| 29 | // ========================================================================= |
||
| 30 | |||
| 31 | /** |
||
| 32 | * The FrontendTemplates in this container |
||
| 33 | * |
||
| 34 | * @var EditableTemplate[] $data |
||
| 35 | */ |
||
| 36 | public $data = []; |
||
| 37 | |||
| 38 | // Public Methods |
||
| 39 | // ========================================================================= |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @inheritdoc |
||
| 43 | */ |
||
| 44 | public function render(array $params = []): string |
||
| 45 | { |
||
| 46 | return ''; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @inheritdoc |
||
| 51 | */ |
||
| 52 | public function normalizeContainerData() |
||
| 53 | { |
||
| 54 | parent::normalizeContainerData(); |
||
| 55 | |||
| 56 | /** @var array $config */ |
||
| 57 | foreach ($this->data as $key => $config) { |
||
| 58 | $this->addData(EditableTemplate::create($config), $key); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 59 | } |
||
| 60 | } |
||
| 61 | } |
||
| 62 |