public function FieldInstance::getExportProperties

Overrides \Drupal\Core\Entity\Entity::getExportProperties().

Overrides ConfigEntityBase::getExportProperties

2 calls to FieldInstance::getExportProperties()
FieldInstance::delete in drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php
Overrides \Drupal\Core\Entity\Entity::delete().
FieldInstance::serialize in drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php

File

drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php, line 286
Contains \Drupal\field\Plugin\Core\Entity\FieldInstance.

Class

FieldInstance
Defines the Field instance entity.

Namespace

Drupal\field\Plugin\Core\Entity

Code

public function getExportProperties() {
  $names = array(
    'id',
    'uuid',
    'status',
    'langcode',
    'field_uuid',
    'entity_type',
    'bundle',
    'label',
    'description',
    'required',
    'default_value',
    'default_value_function',
    'settings',
  );
  $properties = array();
  foreach ($names as $name) {
    $properties[$name] = $this
      ->get($name);
  }

  // Additionally, include the field type, that is needed to be able to
  // generate the field-type-dependant parts of the config schema.
  $properties['field_type'] = $this->field->type;
  return $properties;
}