You are here

public static function EntityUpdateTestHelper::fieldStatus in Entity Update 8

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

Get a configurable field status or value.

3 calls to EntityUpdateTestHelper::fieldStatus()
EntityUpdateTestsContentEntity02::baseFieldDefinitions in modules/entity_update_tests/src/Entity/EntityUpdateTestsContentEntity02.php
Provides base field definitions for an entity type.
EntityUpdateTestsContentEntity::baseFieldDefinitions in modules/entity_update_tests/src/Entity/EntityUpdateTestsContentEntity.php
Provides base field definitions for an entity type.
EntityUpdateTestSettings::buildForm in modules/entity_update_tests/src/Form/EntityUpdateTestSettings.php
Form constructor.

File

modules/entity_update_tests/src/EntityUpdateTestHelper.php, line 66

Class

EntityUpdateTestHelper
EntityUpdateTest Helper functions.

Namespace

Drupal\entity_update_tests

Code

public static function fieldStatus($name) {
  return self::getConfig()
    ->get("fields." . $name);
}