Entity fields file

Add to Default shortcuts
file =>
array:11 [
  "fid" => Drupal\Core\Field\BaseFieldDefinition {#1633
    #definition: array:8 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1634
        #string: "File ID"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "read-only" => true
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1635
        #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 {#1636
      #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 {#1633}
    }
    #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 {#1637
    #definition: array:8 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1638
        #string: "UUID"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "read-only" => true
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1639
        #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 {#1640
      #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 {#1637}
    }
    #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 {#1641
    #definition: array:8 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1642
        #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 {#1643
        #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 {#1644
      #definition: array:2 [
        "type" => "field_item:language"
        "settings" => []
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1641}
    }
    #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 {#1645
    #definition: array:9 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1646
        #string: "User ID"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "translatable" => false
      "default_value_callback" => "Drupal\file\Entity\File::getDefaultEntityOwner"
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1647
        #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 {#1648
      #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 {#1645}
    }
    #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 {#1649
    #definition: array:7 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1650
        #string: "Filename"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1651
        #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 {#1652
      #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 {#1649}
    }
    #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 {#1653
    #definition: array:8 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1654
        #string: "URI"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1655
        #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 {#1656
      #definition: array:2 [
        "type" => "field_item:file_uri"
        "settings" => array:2 [
          "max_length" => 255
          "case_sensitive" => true
        ]
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1653}
    }
    #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 {#1657
    #definition: array:7 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1658
        #string: "File MIME type"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1659
        #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 {#1660
      #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 {#1657}
    }
    #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 {#1661
    #definition: array:7 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1662
        #string: "File size"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1663
        #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 {#1664
      #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 {#1661}
    }
    #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 {#1665
    #definition: array:8 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1666
        #string: "Status"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1667
        #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 {#1668
      #definition: array:2 [
        "type" => "field_item:boolean"
        "settings" => array:2 [
          "on_label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1669
            #string: "On"
            #arguments: []
            #translatedMarkup: null
            #options: []
            #stringTranslation: null
          }
          "off_label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1670
            #string: "Off"
            #arguments: []
            #translatedMarkup: null
            #options: []
            #stringTranslation: null
          }
        ]
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1665}
    }
    #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 {#1671
    #definition: array:7 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1672
        #string: "Created"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1673
        #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 {#1674
      #definition: array:2 [
        "type" => "field_item:created"
        "settings" => []
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1671}
    }
    #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 {#1675
    #definition: array:7 [
      "label" => Drupal\Core\StringTranslation\TranslatableMarkup {#1676
        #string: "Changed"
        #arguments: []
        #translatedMarkup: null
        #options: []
        #stringTranslation: null
      }
      "description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1677
        #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 {#1678
      #definition: array:2 [
        "type" => "field_item:changed"
        "settings" => []
      ]
      #typedDataManager: null
      #fieldDefinition: Drupal\Core\Field\BaseFieldDefinition {#1675}
    }
    #type: "changed"
    #propertyDefinitions: null
    #schema: array:4 [
      "columns" => array:1 [
        "value" => array:1 [
          "type" => "int"
        ]
      ]
      "unique keys" => []
      "indexes" => []
      "foreign keys" => []
    ]
    #indexes: []
  }
]