1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-11 17:32:41 +01:00
phorge-phorge/src/applications/pholio/remarkup/PholioRemarkupRule.php

28 lines
599 B
PHP
Raw Normal View History

<?php
final class PholioRemarkupRule
extends PhabricatorRemarkupRuleObject {
protected function getObjectNamePrefix() {
return 'M';
}
protected function loadObjects(array $ids) {
$viewer = $this->getEngine()->getConfig('viewer');
return id(new PholioMockQuery())
->setViewer($viewer)
->needImages(true)
->needTokenCounts(true)
->withIDs($ids)
->execute();
}
protected function renderObjectEmbed($object, $handle, $options) {
$embed_mock = id(new PholioMockEmbedView())
->setMock($object);
return $embed_mock->render();
}
}