You are here

public static function EntityUpdateTestsContentEntity::getConfigurableFields in Entity Update 8

Same name and namespace in other branches
  1. 2.0.x tests/modules/entity_update_tests/src/Entity/EntityUpdateTestsContentEntity.php \Drupal\entity_update_tests\Entity\EntityUpdateTestsContentEntity::getConfigurableFields()

Get configurable fields list.

1 call to EntityUpdateTestsContentEntity::getConfigurableFields()
EntityUpdateTestSettings::getConfigurableFields in modules/entity_update_tests/src/Form/EntityUpdateTestSettings.php

File

modules/entity_update_tests/src/Entity/EntityUpdateTestsContentEntity.php, line 29

Class

EntityUpdateTestsContentEntity
Defines the Paragraph entity.

Namespace

Drupal\entity_update_tests\Entity

Code

public static function getConfigurableFields($mode = NULL) {
  $list = [];

  // Install / Uninstall fields.
  if ($mode == 'install' || !$mode) {
    $list['name'] = 'Name';
    $list['description'] = 'Description';
  }

  // Change field type.
  if ($mode == 'type' || !$mode) {
    $list['type'] = 'Type';
  }
  return $list;
}