public static function EntityUpdateTestsContentEntity::getConfigurableFields in Entity Update 2.0.x
Same name and namespace in other branches
- 8 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 tests/
modules/ entity_update_tests/ src/ Form/ EntityUpdateTestSettings.php
File
- tests/
modules/ entity_update_tests/ src/ Entity/ EntityUpdateTestsContentEntity.php, line 29
Class
- EntityUpdateTestsContentEntity
- Defines the Paragraph entity.
Namespace
Drupal\entity_update_tests\EntityCode
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;
}