Lines Matching defs:max
33 * to the related page array when the number of backlinks is bigger than the max
40 * @param int|null $max
59 $max = $tagAttributes->getValue(RelatedTag::MAX_LINKS_CONF);
60 if ($max === NULL) {
61 $max = SiteConfig::getConfValue(RelatedTag::MAX_LINKS_CONF, RelatedTag::MAX_LINKS_CONF_DEFAULT);
67 $relatedPages = self::getRelatedPagesOrderedByBacklinkCount($page, $max);
113 * @param int|null $max
116 public static function getRelatedPagesOrderedByBacklinkCount(MarkupPath $page, ?int $max = null): array
137 if ($max !== null) {
138 if (sizeof($related) > $max) {
139 $related = array_slice($related, 0, $max);