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:
parent
71118f8e88
commit
029fa5b1f3
1 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue