You are here

public static function WebformContentCreatorUtilities::getAllWebforms in Webform Content Creator 3.x

Same name and namespace in other branches
  1. 8 src/WebformContentCreatorUtilities.php \Drupal\webform_content_creator\WebformContentCreatorUtilities::getAllWebforms()
  2. 2.x src/WebformContentCreatorUtilities.php \Drupal\webform_content_creator\WebformContentCreatorUtilities::getAllWebforms()

Get all webform entities.

Return value

array All webform entities.

1 call to WebformContentCreatorUtilities::getAllWebforms()
WebformContentCreatorUtilities::getFormattedWebforms in src/WebformContentCreatorUtilities.php
Get an associative array with webform ids and respective labels.

File

src/WebformContentCreatorUtilities.php, line 279

Class

WebformContentCreatorUtilities
Provides useful functions required in Webform content creator module.

Namespace

Drupal\webform_content_creator

Code

public static function getAllWebforms() {
  $ids = self::getAllWebformIds();
  $webforms = \Drupal::entityTypeManager()
    ->getStorage(self::WEBFORM)
    ->loadMultiple(array_keys($ids));
  return $webforms;
}