Commit 2df1dfed authored by singularo's avatar singularo Committed by Renato Gonçalves H
Browse files

Issue #3223187 by singularo, RenatoG: Importing field_collections from config causes errors

parent 2c644c5f
......@@ -36,6 +36,10 @@ function field_collection_help($route_name, RouteMatchInterface $route_match) {
* Create a field collection bundle when a new field collection field is made.
*/
function field_collection_field_storage_config_insert(FieldStorageConfigInterface $field) {
if (Drupal::isConfigSyncing()) {
return;
}
if ($field->getType() == 'field_collection') {
$field_collection_exists = \Drupal::entityQuery('field_collection')
->condition('id', $field->getName())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment