1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Allow AphrontTagView subclasses to wrap their tag in a container

Summary: See Conpherence discussion. This probably works?

Test Plan:
Didn't test at all!

bwahaha

Reviewers: chad

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D6120
This commit is contained in:
epriestley 2013-06-03 13:24:12 -07:00
parent 71118f8e88
commit 029fa5b1f3

View file

@ -14,7 +14,6 @@ abstract class AphrontTagView extends AphrontView {
private $mustCapture;
private $workflow;
public function setWorkflow($workflow) {
$this->workflow = $workflow;
return $this;
@ -90,6 +89,10 @@ abstract class AphrontTagView extends AphrontView {
return $this->renderChildren();
}
protected function renderTagContainer($tag) {
return $tag;
}
protected function willRender() {
return;
}
@ -151,9 +154,11 @@ abstract class AphrontTagView extends AphrontView {
}
}
return javelin_tag(
$tag = javelin_tag(
$this->getTagName(),
$attributes,
$this->getTagContent());
return $this->renderTagContainer($tag);
}
}