| @@ 17-33 (lines=17) @@ | ||
| 14 | $this->template = $template; |
|
| 15 | } |
|
| 16 | ||
| 17 | public function connector() |
|
| 18 | { |
|
| 19 | return [ |
|
| 20 | [ |
|
| 21 | [ |
|
| 22 | 'param' => 'post_type', |
|
| 23 | 'operator' => '==', |
|
| 24 | 'value' => $this->postType, |
|
| 25 | ], |
|
| 26 | [ |
|
| 27 | 'param' => 'page_template', |
|
| 28 | 'operator' => '==', |
|
| 29 | 'value' => $this->template, |
|
| 30 | ], |
|
| 31 | ], |
|
| 32 | ]; |
|
| 33 | } |
|
| 34 | ||
| 35 | public function name() |
|
| 36 | { |
|
| @@ 51-67 (lines=17) @@ | ||
| 48 | /** |
|
| 49 | * {@inheritdoc} |
|
| 50 | */ |
|
| 51 | public function connector() |
|
| 52 | { |
|
| 53 | return [ |
|
| 54 | [ |
|
| 55 | [ |
|
| 56 | 'param' => 'post_type', |
|
| 57 | 'operator' => '==', |
|
| 58 | 'value' => 'page', |
|
| 59 | ], |
|
| 60 | [ |
|
| 61 | 'param' => 'page_template', |
|
| 62 | 'operator' => '==', |
|
| 63 | 'value' => $this->name, |
|
| 64 | ], |
|
| 65 | ], |
|
| 66 | ]; |
|
| 67 | } |
|
| 68 | ||
| 69 | /** |
|
| 70 | * {@inheritdoc} |
|