| @@ 38-45 (lines=8) @@ | ||
| 35 | return view('laravel-feed::feed', compact('meta', 'items'))->render(); |
|
| 36 | } |
|
| 37 | ||
| 38 | protected function getFeedConfigurationItems() |
|
| 39 | { |
|
| 40 | if (is_array($this->feedConfiguration['items'])) { |
|
| 41 | return $this->feedConfiguration['items'][0]; |
|
| 42 | } |
|
| 43 | ||
| 44 | return $this->feedConfiguration['items']; |
|
| 45 | } |
|
| 46 | ||
| 47 | protected function getFeedConfigurationItemsFilter() |
|
| 48 | { |
|
| @@ 47-54 (lines=8) @@ | ||
| 44 | return $this->feedConfiguration['items']; |
|
| 45 | } |
|
| 46 | ||
| 47 | protected function getFeedConfigurationItemsFilter() |
|
| 48 | { |
|
| 49 | if (is_array($this->feedConfiguration['items'])) { |
|
| 50 | return $this->feedConfiguration['items'][1]; |
|
| 51 | } |
|
| 52 | ||
| 53 | return null; |
|
| 54 | } |
|
| 55 | ||
| 56 | protected function getLastUpdatedDate(Collection $items) |
|
| 57 | { |
|