public function Drupal8::fieldInfoField in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::fieldInfoField()
- 7.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::fieldInfoField()
Retrieve information about one field.
Parameters
string $name: A field name.
Return value
array Information about a field, corresponds to the return of field_info_field() in Drupal 7.
Overrides Framework::fieldInfoField
File
- api/
src/ Framework/ Drupal8.php, line 42
Class
- Drupal8
- Drupal 8-specific code.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function fieldInfoField($field) {
$fields = $this
->fieldInfoFields();
return $fields[$field];
}