You are here

protected static function ResourceFieldEntity::fieldInfoField in RESTful 7.2

Gets statically cached information about a field.

Parameters

string $field_name: The name of the field to retrieve. $field_name can only refer to a non-deleted, active field. For deleted fields, use field_info_field_by_id(). To retrieve information about inactive fields, use field_read_fields().

Return value

array The field info.

See also

field_info_field()

2 calls to ResourceFieldEntity::fieldInfoField()
ResourceFieldEntity::fieldClassName in src/Plugin/resource/Field/ResourceFieldEntity.php
Get the class name to use based on the field definition.
ResourceFieldEntity::propertyIsField in src/Plugin/resource/Field/ResourceFieldEntity.php
Checks if a given string represents a Field API field.

File

src/Plugin/resource/Field/ResourceFieldEntity.php, line 1265
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldEntity

Class

ResourceFieldEntity
Class ResourceFieldEntity.

Namespace

Drupal\restful\Plugin\resource\Field

Code

protected static function fieldInfoField($field_name) {
  return field_info_field($field_name);
}