public function EntityParser::referenceEmbeddable in Entity Share 8.3
Checks if the entity should be embedded into Diff or just listed with UUID.
Parameters
string $entity_type_id: Entity type ID.
Return value
bool Whether entity of this type is embeddable or not.
File
- modules/
entity_share_diff/ src/ Service/ EntityParser.php, line 322
Class
- EntityParser
- Entity parser.
Namespace
Drupal\entity_share_diff\ServiceCode
public function referenceEmbeddable(string $entity_type_id) {
$embeddable_types = [
'paragraph',
'media',
];
return in_array($entity_type_id, $embeddable_types);
}