public function EntityFormDisplay::serialize

File

drupal/core/modules/entity/lib/Drupal/entity/Plugin/Core/Entity/EntityFormDisplay.php, line 76
Contains \Drupal\entity\Plugin\Core\Entity\EntityFormDisplay.

Class

EntityFormDisplay
Configuration entity that contains widget options for all components of a entity form in a given form mode.

Namespace

Drupal\entity\Plugin\Core\Entity

Code

public function serialize() {

  // Only store the definition, not external objects or derived data.
  $data = $this
    ->getExportProperties() + array(
    'entityType' => $this
      ->entityType(),
  );
  return serialize($data);
}