protected function ContentLoader::getContentAttributes in YAML Content 8
Get organized content attributes from import data.
Parameters
string $entity_type: The entity type ID.
array $content_data: The array of content data to be parsed.
Return value
array Content data grouped by type.
See also
\Drupal\yaml_content\Service\EntityLoadHelper::categorizeAttributes()
2 calls to ContentLoader::getContentAttributes()
- ContentLoader::buildEntity in src/
ContentLoader/ ContentLoader.php - Build an entity from the provided content data.
- ContentLoader::createEntity in src/
ContentLoader/ ContentLoader.php - Create the entity based on basic properties.
File
- src/
ContentLoader/ ContentLoader.php, line 386
Class
- ContentLoader
- ContentLoader class for parsing and importing YAML content.
Namespace
Drupal\yaml_content\ContentLoaderCode
protected function getContentAttributes($entity_type, array $content_data) {
// Parse properties for creation and fields for processing.
$attributes = $this
->getEntityLoadHelper()
->categorizeAttributes($entity_type, $content_data);
return $attributes;
}