function FieldDiscoveryTestClass::getAllFields

Same name in other branches
  1. 9 core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php \Drupal\field_discovery_test\FieldDiscoveryTestClass::getAllFields()
  2. 10 core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php \Drupal\field_discovery_test\FieldDiscoveryTestClass::getAllFields()
  3. 11.x core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php \Drupal\field_discovery_test\FieldDiscoveryTestClass::getAllFields()

Overrides FieldDiscovery::getAllFields

File

core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php, line 44

Class

FieldDiscoveryTestClass
A test class to expose protected methods.

Namespace

Drupal\field_discovery_test

Code

public function getAllFields($core) {
    if (!empty($this->testData['getAllFields'][$core])) {
        return $this->testData['getAllFields'][$core];
    }
    return parent::getAllFields($core);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.