public function label($customText = false) { if ($customText == false) { $text = $this->attributeKey->getAttributeKeyDisplayName(); } else { $text = $customText; } /** @var \Concrete\Core\Form\Service\Form $form */ $form = Core::make('helper/form'); print $form->label($this->field('value'), $text); }