Commit f1105732 authored by Nathaniel Burnett's avatar Nathaniel Burnett Committed by Damien McKenna
Browse files

Issue #3210819 by Nathaniel, jhmnieuwenhuis, DamienMcKenna: Form display disabled components.

parent f7106a33
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -118,10 +118,14 @@ class ExifContent {
    $result = [];
    foreach ($entity->getFieldDefinitions() as $fieldName => $fieldDefinition) {
      if ($fieldDefinition instanceof FieldConfigInterface || ($fieldDefinition instanceof BaseFieldDefinition and $fieldName === 'title')) {
        $settings = \Drupal::entityTypeManager()
        $settings = NULL;
        $formDisplay = \Drupal::entityTypeManager()
          ->getStorage('entity_form_display')
          ->load($entityType . '.' . $entity->bundle() . '.default')
          ->getComponent($fieldName)['settings'];
          ->getComponent($fieldName);
        if ($formDisplay) {
          $settings = $formDisplay['settings'];
        }
        $exifField = NULL;
        $mediaField = NULL;
        $imageField = NULL;