Lines Matching defs:layout
31 const LAYOUT_ATTRIBUTE = "layout";
83 * Capture the layout
85 $layout = $tagAttributes->getValueAndRemoveIfPresent(self::LAYOUT_ATTRIBUTE);
86 if ($layout !== null) {
88 $this->setRequestedLayout($layout);
90 throw new ExceptionBadArgument("The layout is not a valid. Error:{$e->getMessage()}", self::CANONICAL);
223 // FYI: The below code outputs all menu in mobile (in another HTML layout)
371 * The layout may be requested (example in a landing page where you don't want to see it)
372 * @param string $layout
376 public function setRequestedLayout(string $layout): FetcherRailBar
378 if (!in_array($layout, self::KNOWN_LAYOUT)) {
379 throw new ExceptionBadArgument("The layout ($layout) is not valid. The known-layout are : ".ArrayUtility::formatAsString(self::KNOWN_LAYOUT));
381 $this->requestedLayout = $layout;