public function getLabel() { // TODO: This is a bit funky and still rendering a few pixels of padding // on the form, but there's currently no way to get a control to only emit // hidden inputs. Clean this up eventually. if ($this->getIsInvisible()) { return null; } return parent::getLabel(); }