You are here

public static function Webform::is_webform4 in Little helpers 7

3 calls to Webform::is_webform4()
Submission::__construct in src/Webform/Submission.php
Constructor.
Webform::formStateToSubmission in src/Webform/Webform.php
Create a submission-object from a webform_client_form $form_state.
Webform::needsConfirmation in src/Webform/Webform.php
Check if webform_confirm_email is active and this submission has to be confirmed.

File

src/Webform/Webform.php, line 10

Class

Webform

Namespace

Drupal\little_helpers\Webform

Code

public static function is_webform4() {

  // Only webform4 has token support - so this is a cheap way to check.
  return function_exists('webform_replace_tokens');
}