public static function FeedImport::getAllEntities in Feed Import 8
Get all entity names.
Return value
array List of all entity names.
5 calls to FeedImport::getAllEntities()
- EditFeedForm::buildForm in src/
Form/ EditFeedForm.php - Form constructor.
- FeedImportBaseSettingsForm::buildForm in feed_import_base/
src/ Form/ FeedImportBaseSettingsForm.php - Form constructor.
- FeedImporterAddForm::form in src/
Form/ FeedImporterAddForm.old.php - Gets the actual form array to be built.
- FeedImporterAddForm::form in src/
Form/ FeedImporterAddForm.php - Gets the actual form array to be built.
- FeedImporterEditForm::form in src/
Form/ FeedImporterEditForm.php - Gets the actual form array to be built.
File
- feed_import_base/
src/ FeedImport.php, line 107
Class
- FeedImport
- This class provides helper functions for feed import.
Namespace
Drupal\feed_import_baseCode
public static function getAllEntities() {
if (!static::$entityNames) {
foreach (\Drupal::entityManager()
->getDefinitions() as $entity => $info) {
static::$entityNames[$entity] = $info
->getLabel();
}
}
return static::$entityNames;
}