You are here

public function FlexiformFCHandler::getForm in Flexiform 7

Get which form to use to calculate completeness.

1 call to FlexiformFCHandler::getForm()
FlexiformFCHandler::completeness in flexiform_webform/flexiform_webform.fc.inc

File

flexiform_webform/flexiform_webform.fc.inc, line 14
Contains the Field Comlete handler for the FlexiformWebform Module.

Class

FlexiformFCHandler
@file Contains the Field Comlete handler for the FlexiformWebform Module.

Code

public function getForm() {
  $webform = entity_load_single('flexiform_webform', $this->entity->webform);
  $form = '__none';
  if (!empty($webform->data['fc']['form'])) {
    $form = $webform->data['fc']['form'];
  }
  return $form;
}