public function setCustomField(PhabricatorCustomField $field)
 {
     $this->customField = $field;
     $this->setKey('custom:' . $field->getFieldIndex());
     $aliases = array();
     $aliases[] = $field->getFieldKey();
     $this->setAliases($aliases);
     return $this;
 }
 /**
  * Get a unique key identifying a field.
  *
  * @param PhabricatorCustomField Field to identify.
  * @return string Unique identifier, suitable for use as an input name.
  */
 public function getKeyForCustomField(PhabricatorCustomField $field)
 {
     return 'custom:' . $field->getFieldIndex();
 }