Lines Matching refs:page

22  * to tag page manually (you see well what kind of information they need)
50 public static function createForPage(MarkupPath $page): LdJson
53 ->setResource($page);
58 * @param MarkupPath $page
60 public static function addImage(array &$ldJson, MarkupPath $page)
63 * Image must belong to the page
81 $imagesSet = $page->getImagesForTheFollowingUsages([PageImageUsage::ALL, PageImageUsage::SOCIAL, PageImageUsage::GOOGLE]);
88 LogUtility::internalError("The page image should come from a wiki path", self::CANONICAL, $e);
95 LogUtility::internalError("The page image mime could not be determined. Error:" . $e->getMessage(), self::CANONICAL, $e);
103 LogUtility::error("The image ($pageImagePath) could not be added as page image. Error: {$e->getMessage()}");
191 * (ie if the page was set to no be an organization table,
236 $page = $this->getResource();
237 if (!($page instanceof MarkupPath)) {
242 $type = PageType::createForPage($page)
251 $type = PageType::createForPage($page)
272 if ($page->isRootHomePage()) {
353 'url' => $page->getAbsoluteCanonicalUrl()->toString(),
354 "headline" => $page->getTitleOrDefault(),
359 $ldJson[self::DATE_PUBLISHED_KEY] = $page
363 // Internal error, the page should exist
364 LogUtility::error("Internal Error: We were unable to define the publication date for the page ($page). Error: {$e->getMessage()}", self::CANONICAL);
371 $modifiedTime = $page->getModifiedTimeOrDefault();
374 // Internal error, the page should exist
375 LogUtility::error("Internal Error: We were unable to define the modification date for the page ($page)", self::CANONICAL);
394 self::addImage($ldJson, $page);
403 $eventName = $page->getName();
406 LogUtility::msg("The name metadata is mandatory for a event page", LogUtility::LVL_MSG_ERROR, self::CANONICAL);
411 $eventDescription = $page->getDescription();
413 LogUtility::msg("The description metadata is mandatory for a event page", LogUtility::LVL_MSG_ERROR, self::CANONICAL);
419 $startDate = $page->getStartDate();
421 LogUtility::msg("The date_start metadata is mandatory for a event page", LogUtility::LVL_MSG_ERROR, self::CANONICAL);
427 $endDate = $page->getEndDate();
429 LogUtility::msg("The date_end metadata is mandatory for a event page", LogUtility::LVL_MSG_ERROR, self::CANONICAL);
435 self::addImage($ldJson, $page);
445 'url' => $page->getAbsoluteCanonicalUrl()->toString()
457 PageDescription::createForPage($page)