Lines Matching defs:markup
14 * This code permits to render a markup from a string passed as argument
29 const NAME = "markup";
31 public const MARKUP_PROPERTY = "markup";
37 public static function createFetcherMarkup(string $markup): FetcherMarkupWebcode
40 ->setRequestedMarkup($markup);
44 * @throws ExceptionBadState - the markup is mandatory
70 $markup = $tagAttributes->getValueAndRemove($markupProperty);
71 if ($markup === null) {
72 throw new ExceptionBadArgument("The markup property ($markupProperty) is mandatory");
74 $this->setRequestedMarkup($markup);
95 * @throws ExceptionBadState - if the markup was not defined
133 throw new ExceptionRuntimeInternal("An error has occurred while transforming the markup fragment to HTML. Error: {$e->getMessage()}", self::CANONICAL, 1, $e);
151 public function setRequestedMarkup(string $markup): FetcherMarkupWebcode
153 $this->requestedMarkup = $markup;
170 throw new ExceptionBadState("The markup was not defined.", self::CANONICAL);