public static function WebformContentCreatorUtilities::getAllContentTypeIds in Webform Content Creator 3.x
Same name and namespace in other branches
- 8 src/WebformContentCreatorUtilities.php \Drupal\webform_content_creator\WebformContentCreatorUtilities::getAllContentTypeIds()
Get all content type ids.
Return value
array Array with all content type ids.
1 call to WebformContentCreatorUtilities::getAllContentTypeIds()
- WebformContentCreatorUtilities::getAllContentTypes in src/
WebformContentCreatorUtilities.php - Get all content type entities.
File
- src/
WebformContentCreatorUtilities.php, line 232
Class
- WebformContentCreatorUtilities
- Provides useful functions required in Webform content creator module.
Namespace
Drupal\webform_content_creatorCode
public static function getAllContentTypeIds() {
return \Drupal::service(self::ENTITY_TYPE_MANAGER)
->getStorage('node_type')
->getQuery()
->execute();
}