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