You are here

public function WorkflowTransitionForm::getFormId in Workflow 7.2

1 call to WorkflowTransitionForm::getFormId()
WorkflowTransitionForm::buildForm in includes/Form/WorkflowTransitionForm.php
_state

File

includes/Form/WorkflowTransitionForm.php, line 37
Contains \workflow\Form\WorkflowTransitionForm.

Class

WorkflowTransitionForm
Provides a Transition Form to be used in the Workflow Widget.

Code

public function getFormId() {
  $field = $this->field;

  // No entity may be set on VBO form.
  $entity_id = $this->entity ? entity_id($this->entity_type, $this->entity) : '';

  // The field is not set when editing a stand alone Transition.
  $field_id = isset($field['id']) ? $field['id'] : '';
  return implode('_', array(
    'workflow_transition_form',
    $this->entity_type,
    $entity_id,
    $field_id,
  ));
}