Lines Matching defs:snippets
29 * * `ForSlot` are snippets for a bar (ie page, sidebar, ...) - cached
30 * * `ForRequests` are snippets added for the HTTP request - not cached. Example of request component: message, anchor
67 * @param Snippet[] $snippets
70 public static function toHtmlFromSnippetArray(array $snippets): string
73 foreach ($snippets as $snippet) {
88 * Returns all snippets (request and slot scoped)
98 * @return Snippet[] - the slot snippets (not the request snippet)
102 $snippets = Snippet::getSnippets();
104 foreach ($snippets as $snippet) {
135 $snippets = null;
137 $snippets[] = Snippet::createFromJson($element)
140 return $snippets;
197 $snippets = [];
201 $snippets[] = $snippet;
207 return $snippets;
212 * or to show how to test if snippets are present
371 $snippets = Snippet::getSnippets();
373 foreach ($snippets as $snippet) {
396 $snippets = $this->getSlotSnippets();
399 $snippets = $this->getRequestSnippets();
403 $snippets = $this->getAllSnippets();
411 return self::toHtmlFromSnippetArray($snippets);
439 $snippets = Snippet::getSnippets();
440 return array_filter($snippets,