You are here

public static function ResourceFieldEntity::propertyIsField in RESTful 7.2

Checks if a given string represents a Field API field.

Parameters

string $name: The name of the field/property.

Return value

bool TRUE if it's a field. FALSE otherwise.

Overrides ResourceFieldEntityInterface::propertyIsField

5 calls to ResourceFieldEntity::propertyIsField()
DataProviderEntity::getEntityIdByFieldId in src/Plugin/resource/DataProvider/DataProviderEntity.php
Get the entity ID based on the ID provided in the request.
DataProviderEntity::getFieldsFromPublicNameItem in src/Plugin/resource/DataProvider/DataProviderEntity.php
Get the (reference) field information for a single item.
DataProviderEntity::getFieldsInfoFromPublicName in src/Plugin/resource/DataProvider/DataProviderEntity.php
Transform the nested public name into an array of Drupal field information.
DataProviderEntity::queryForListSort in src/Plugin/resource/DataProvider/DataProviderEntity.php
Sort the query for list.
ResourceFieldEntity::formatterValue in src/Plugin/resource/Field/ResourceFieldEntity.php
Get value from a field rendered by Drupal field API's formatter.

File

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

Class

ResourceFieldEntity
Class ResourceFieldEntity.

Namespace

Drupal\restful\Plugin\resource\Field

Code

public static function propertyIsField($name) {
  return (bool) static::fieldInfoField($name);
}