Lines Matching refs:snippet
147 * @var bool - when a execution is not a {@link self::isPathExecution()}, the snippet will not be stored automatically.
470 foreach ($jsonDecodeSnippets as $snippet) {
472 $nativeSnippets[] = Snippet::createFromJson($snippet);
474 LogUtility::error("The snippet json array cannot be build into a snippet object. " . $e->getMessage() . "\n" . ArrayUtility::formatAsString($snippet), LogUtility::SUPPORT_CANONICAL,);
509 throw new ExceptionRuntime("There is no snippet cache store for a non-path execution");
848 * @return Path|null - utility class to get the source markup path or null (if this is a markup snippet/string rendering)
869 foreach ($snippets as $snippet) {
871 if ($snippet->getComponentId() === $componentId) {
872 $snippetsForComponent[] = $snippet;
918 * @param Snippet $snippet
921 public function addSnippet(Snippet $snippet): FetcherMarkup
926 * If this is not a path execution, the snippet cannot be
935 $this->parentMarkupHandler->addSnippet($snippet);
944 LogUtility::warning("The execution ($this) is not a path execution. The snippet $snippet will not be preserved after initial rendering. Set the execution as standalone or set a parent markup handler.");
947 LogUtility::warning("The execution ($this) is not a HTML execution. The snippet $snippet will not be preserved because they are reserved for XHMTL execution");
950 $snippetGuid = $snippet->getPath()->toUriString();
951 $this->localSnippets[$snippetGuid] = $snippet;