You are here

public function FeedsEntityProcessorPropertyEntity::getEntityTypeOptions in Feeds entity processor 7

Returns available entity types.

Return value

array A list of entity types keyed by machine name => label.

4 calls to FeedsEntityProcessorPropertyEntity::getEntityTypeOptions()
FeedsEntityProcessorPropertyEntity::getFormField in src/Property/FeedsEntityProcessorPropertyEntity.php
Implements FeedsEntityProcessorPropertyInterface::getFormField().
FeedsEntityProcessorPropertyEntity::mappingFormCallback in src/Property/FeedsEntityProcessorPropertyEntity.php
Form callback for 'entity' mapping target.
FeedsEntityProcessorPropertyEntity::mappingSummaryCallback in src/Property/FeedsEntityProcessorPropertyEntity.php
Summary callback for 'entity' mapping target.
FeedsEntityProcessorPropertyEntity::validate in src/Property/FeedsEntityProcessorPropertyEntity.php
Implements FeedsEntityProcessorPropertyInterface::validate().

File

src/Property/FeedsEntityProcessorPropertyEntity.php, line 51
Contains FeedsEntityProcessorPropertyEntity.

Class

FeedsEntityProcessorPropertyEntity
Handler for entity property.

Code

public function getEntityTypeOptions() {
  $entity_type_options =& drupal_static(__METHOD__);
  if (empty($entity_type_options)) {
    $info = entity_get_info();
    foreach ($info as $entity_type => $entity_type_info) {
      $entity_type_options[$entity_type] = $entity_type_info['label'];
    }
  }
  return $entity_type_options;
}