-
Notifications
You must be signed in to change notification settings - Fork 2
/
SeoController.php
45 lines (38 loc) · 917 Bytes
/
SeoController.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
namespace shershennm\seo;
use yii\base\BaseObject;
abstract class SeoController extends BaseObject
{
/**
* @var string Page <title> tag value
*/
public $title;
/**
* @var \yii\web\Controller Web Controller instance
*/
public $controller;
/**
* @var \yii\web\View Controller View
*/
public $view;
/**
* Register <meta> tag in current view.
*
* @param array $options params for View::registerMetaTag method
*/
public function registerMetaTag($options)
{
return $this->view->registerMetaTag($options);
}
/**
* Register <link> tag in current view.
*
* @param array $options params for View::registerLinkTag method
*/
public function registerLinkTag($options)
{
return $this->view->registerLinkTag(array_merge([
'type' => null,
], $options));
}
}