Entity fields file

Add to Standard shortcuts
file =>
array:11 [
  "fid" => Drupal\Core\Field\BaseFieldDefinition {#1620
    #definition: array:8 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1621
        #string: "File ID"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "read-only" => true
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1622
        #string: "The file ID."
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "provider" => "file"
      "field_name" => "fid"
      "entity_type" => "file"
      "bundle" => null
      "initial_value" => null
    ]
    #typedDataManager: null
    #itemDefinition: Drupal\Core\Field\TypedData\FieldItemDataDefinition {#1623
      #definition: array:2 [
        "type" => "field_item:integer"
        "settings" => array:6 [
          "unsigned" => true
          "size" => "normal"
          "min" => ""
          "max" => ""
          "prefix" => ""
          "suffix" => ""
        ]
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1620}
    }
    #type: "integer"
    #propertyDefinitions: null
    #schema: array:4 [
      "columns" => array:1 [
        "value" => array:3 [
          "type" => "int"
          "unsigned" => true
          "size" => "normal"
        ]
      ]
      "unique keys" => []
      "indexes" => []
      "foreign keys" => []
    ]
    #indexes: []
  }
  "uuid" => Drupal\Core\Field\BaseFieldDefinition {#1624
    #definition: array:8 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1625
        #string: "UUID"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "read-only" => true
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1626
        #string: "The file UUID."
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "provider" => "file"
      "field_name" => "uuid"
      "entity_type" => "file"
      "bundle" => null
      "initial_value" => null
    ]
    #typedDataManager: null
    #itemDefinition: Drupal\Core\Field\TypedData\FieldItemDataDefinition {#1627
      #definition: array:2 [
        "type" => "field_item:uuid"
        "settings" => array:3 [
          "max_length" => 128
          "is_ascii" => true
          "case_sensitive" => false
        ]
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1624}
    }
    #type: "uuid"
    #propertyDefinitions: null
    #schema: array:4 [
      "columns" => array:1 [
        "value" => array:3 [
          "type" => "varchar_ascii"
          "length" => 128
          "binary" => false
        ]
      ]
      "unique keys" => array:1 [
        "value" => array:1 [
          0 => "value"
        ]
      ]
      "indexes" => []
      "foreign keys" => []
    ]
    #indexes: []
  }
  "langcode" => Drupal\Core\Field\BaseFieldDefinition {#1628
    #definition: array:8 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1629
        #string: "Language code"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "display" => array:2 [
        "view" => array:1 [
          "options" => array:1 [
            "region" => "hidden"
          ]
        ]
        "form" => array:1 [
          "options" => array:2 [
            "type" => "language_select"
            "weight" => 2
          ]
        ]
      ]
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1630
        #string: "The file language code."
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "provider" => "file"
      "field_name" => "langcode"
      "entity_type" => "file"
      "bundle" => null
      "initial_value" => null
    ]
    #typedDataManager: null
    #itemDefinition: Drupal\Core\Field\TypedData\FieldItemDataDefinition {#1631
      #definition: array:2 [
        "type" => "field_item:language"
        "settings" => []
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1628}
    }
    #type: "language"
    #propertyDefinitions: null
    #schema: array:4 [
      "columns" => array:1 [
        "value" => array:2 [
          "type" => "varchar_ascii"
          "length" => 12
        ]
      ]
      "unique keys" => []
      "indexes" => []
      "foreign keys" => []
    ]
    #indexes: []
  }
  "uid" => Drupal\Core\Field\BaseFieldDefinition {#1632
    #definition: array:9 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1633
        #string: "User ID"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "translatable" => false
      "default_value_callback" => "Drupal\file\Entity\File::getDefaultEntityOwner"
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1634
        #string: "The user ID of the file."
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "provider" => "file"
      "field_name" => "uid"
      "entity_type" => "file"
      "bundle" => null
      "initial_value" => null
    ]
    #typedDataManager: null
    #itemDefinition: Drupal\Core\Field\TypedData\FieldItemDataDefinition {#1635
      #definition: array:2 [
        "type" => "field_item:entity_reference"
        "settings" => array:3 [
          "target_type" => "user"
          "handler" => "default"
          "handler_settings" => []
        ]
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1632}
    }
    #type: "entity_reference"
    #propertyDefinitions: null
    #schema: array:4 [
      "columns" => array:1 [
        "target_id" => array:3 [
          "description" => "The ID of the target entity."
          "type" => "int"
          "unsigned" => true
        ]
      ]
      "indexes" => array:1 [
        "target_id" => array:1 [
          0 => "target_id"
        ]
      ]
      "unique keys" => []
      "foreign keys" => []
    ]
    #indexes: []
  }
  "filename" => Drupal\Core\Field\BaseFieldDefinition {#1636
    #definition: array:7 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1637
        #string: "Filename"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1638
        #string: "Name of the file with no path components."
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "provider" => "file"
      "field_name" => "filename"
      "entity_type" => "file"
      "bundle" => null
      "initial_value" => null
    ]
    #typedDataManager: null
    #itemDefinition: Drupal\Core\Field\TypedData\FieldItemDataDefinition {#1639
      #definition: array:2 [
        "type" => "field_item:string"
        "settings" => array:3 [
          "max_length" => 255
          "is_ascii" => false
          "case_sensitive" => false
        ]
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1636}
    }
    #type: "string"
    #propertyDefinitions: null
    #schema: array:4 [
      "columns" => array:1 [
        "value" => array:3 [
          "type" => "varchar"
          "length" => 255
          "binary" => false
        ]
      ]
      "unique keys" => []
      "indexes" => []
      "foreign keys" => []
    ]
    #indexes: []
  }
  "uri" => Drupal\Core\Field\BaseFieldDefinition {#1640
    #definition: array:8 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1641
        #string: "URI"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1642
        #string: "The URI to access the file (either local or remote)."
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "constraints" => array:1 [
        "FileUriUnique" => null
      ]
      "provider" => "file"
      "field_name" => "uri"
      "entity_type" => "file"
      "bundle" => null
      "initial_value" => null
    ]
    #typedDataManager: null
    #itemDefinition: Drupal\Core\Field\TypedData\FieldItemDataDefinition {#1643
      #definition: array:2 [
        "type" => "field_item:file_uri"
        "settings" => array:2 [
          "max_length" => 255
          "case_sensitive" => true
        ]
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1640}
    }
    #type: "file_uri"
    #propertyDefinitions: null
    #schema: array:4 [
      "columns" => array:1 [
        "value" => array:3 [
          "type" => "varchar"
          "length" => 255
          "binary" => true
        ]
      ]
      "unique keys" => []
      "indexes" => []
      "foreign keys" => []
    ]
    #indexes: []
  }
  "filemime" => Drupal\Core\Field\BaseFieldDefinition {#1644
    #definition: array:7 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1645
        #string: "File MIME type"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1646
        #string: "The file's MIME type."
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "provider" => "file"
      "field_name" => "filemime"
      "entity_type" => "file"
      "bundle" => null
      "initial_value" => null
    ]
    #typedDataManager: null
    #itemDefinition: Drupal\Core\Field\TypedData\FieldItemDataDefinition {#1647
      #definition: array:2 [
        "type" => "field_item:string"
        "settings" => array:3 [
          "max_length" => 255
          "is_ascii" => true
          "case_sensitive" => false
        ]
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1644}
    }
    #type: "string"
    #propertyDefinitions: null
    #schema: array:4 [
      "columns" => array:1 [
        "value" => array:3 [
          "type" => "varchar_ascii"
          "length" => 255
          "binary" => false
        ]
      ]
      "unique keys" => []
      "indexes" => []
      "foreign keys" => []
    ]
    #indexes: []
  }
  "filesize" => Drupal\Core\Field\BaseFieldDefinition {#1648
    #definition: array:7 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1649
        #string: "File size"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1650
        #string: "The size of the file in bytes."
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "provider" => "file"
      "field_name" => "filesize"
      "entity_type" => "file"
      "bundle" => null
      "initial_value" => null
    ]
    #typedDataManager: null
    #itemDefinition: Drupal\Core\Field\TypedData\FieldItemDataDefinition {#1651
      #definition: array:2 [
        "type" => "field_item:integer"
        "settings" => array:6 [
          "unsigned" => true
          "size" => "big"
          "min" => ""
          "max" => ""
          "prefix" => ""
          "suffix" => ""
        ]
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1648}
    }
    #type: "integer"
    #propertyDefinitions: null
    #schema: array:4 [
      "columns" => array:1 [
        "value" => array:3 [
          "type" => "int"
          "unsigned" => true
          "size" => "big"
        ]
      ]
      "unique keys" => []
      "indexes" => []
      "foreign keys" => []
    ]
    #indexes: []
  }
  "status" => Drupal\Core\Field\BaseFieldDefinition {#1652
    #definition: array:8 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1653
        #string: "Status"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1654
        #string: "The status of the file, temporary (FALSE) and permanent (TRUE)."
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "default_value" => array:1 [
        0 => array:1 [
          "value" => false
        ]
      ]
      "provider" => "file"
      "field_name" => "status"
      "entity_type" => "file"
      "bundle" => null
      "initial_value" => null
    ]
    #typedDataManager: null
    #itemDefinition: Drupal\Core\Field\TypedData\FieldItemDataDefinition {#1655
      #definition: array:2 [
        "type" => "field_item:boolean"
        "settings" => array:2 [
          "on_label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1656
            #string: "On"
            #arguments: []
            #translatedMarkup: null
            #options: []
            #stringTranslation: null
          }
          "off_label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1657
            #string: "Off"
            #arguments: []
            #translatedMarkup: null
            #options: []
            #stringTranslation: null
          }
        ]
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1652}
    }
    #type: "boolean"
    #propertyDefinitions: null
    #schema: array:4 [
      "columns" => array:1 [
        "value" => array:2 [
          "type" => "int"
          "size" => "tiny"
        ]
      ]
      "unique keys" => []
      "indexes" => []
      "foreign keys" => []
    ]
    #indexes: []
  }
  "created" => Drupal\Core\Field\BaseFieldDefinition {#1658
    #definition: array:7 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1659
        #string: "Created"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1660
        #string: "The timestamp that the file was created."
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "provider" => "file"
      "field_name" => "created"
      "entity_type" => "file"
      "bundle" => null
      "initial_value" => null
    ]
    #typedDataManager: null
    #itemDefinition: Drupal\Core\Field\TypedData\FieldItemDataDefinition {#1661
      #definition: array:2 [
        "type" => "field_item:created"
        "settings" => []
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1658}
    }
    #type: "created"
    #propertyDefinitions: null
    #schema: array:4 [
      "columns" => array:1 [
        "value" => array:1 [
          "type" => "int"
        ]
      ]
      "unique keys" => []
      "indexes" => []
      "foreign keys" => []
    ]
    #indexes: []
  }
  "changed" => Drupal\Core\Field\BaseFieldDefinition {#1662
    #definition: array:7 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1663
        #string: "Changed"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1664
        #string: "The timestamp that the file was last changed."
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "provider" => "file"
      "field_name" => "changed"
      "entity_type" => "file"
      "bundle" => null
      "initial_value" => null
    ]
    #typedDataManager: null
    #itemDefinition: Drupal\Core\Field\TypedData\FieldItemDataDefinition {#1665
      #definition: array:2 [
        "type" => "field_item:changed"
        "settings" => []
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1662}
    }
    #type: "changed"
    #propertyDefinitions: null
    #schema: array:4 [
      "columns" => array:1 [
        "value" => array:1 [
          "type" => "int"
        ]
      ]
      "unique keys" => []
      "indexes" => []
      "foreign keys" => []
    ]
    #indexes: []
  }
]