1 | <?php namespace Arcanesoft\Seo\Models\Presenters; |
||
17 | trait PagePresenter |
||
18 | { |
||
19 | /* ----------------------------------------------------------------- |
||
20 | | Accessors |
||
21 | | ----------------------------------------------------------------- |
||
22 | */ |
||
23 | /** |
||
24 | * Get the `locale_name` attribute. |
||
25 | * |
||
26 | * @return string|null |
||
27 | */ |
||
28 | public function getLocaleNameAttribute() |
||
32 | |||
33 | /** |
||
34 | * Get the `content_preview` attribute. |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getContentPreviewAttribute() |
||
42 | |||
43 | /* ----------------------------------------------------------------- |
||
44 | | Other Methods |
||
45 | | ----------------------------------------------------------------- |
||
46 | */ |
||
47 | /** |
||
48 | * Render the content. |
||
49 | * |
||
50 | * @param array $replacements |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | public function renderContent(array $replacements) |
||
64 | |||
65 | /** |
||
66 | * Get the content replacer. |
||
67 | * |
||
68 | * @return \Arcanesoft\Seo\Helpers\TextReplacer |
||
69 | */ |
||
70 | public static function getContentReplacer() |
||
76 | |||
77 | /** |
||
78 | * Get the content replacer pattern. |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | protected function getReplacerPattern() |
||
88 | } |
||
89 |