You are here

public function EntityLoadHelper::extractContentProperties in YAML Content 8

Identify entity properties from content data.

Parameters

$entity_type: The entity type ID.

array $content_data: The import content structure being parsed for properties.

Return value

array An array of entity properties compatible with loadByProperties().

See also

\Drupal\yaml_content\Service\EntityLoadHelper::categorizeAttributes()

1 call to EntityLoadHelper::extractContentProperties()
EntityLoadHelper::loadByProperties in src/Service/EntityLoadHelper.php
Load an existing entity by property data.

File

src/Service/EntityLoadHelper.php, line 216

Class

EntityLoadHelper
A helper class to support identification and loading of existing entities.

Namespace

Drupal\yaml_content\Service

Code

public function extractContentProperties($entity_type, array $content_data) {
  $attributes = $this
    ->categorizeAttributes($entity_type, $content_data);
  return $attributes['property'];
}