protected function PublicFieldInfoEntity::getEntityInfo in RESTful 7.2
Get the entity info for the current entity the endpoint handling.
Parameters
string $type: Optional. The entity type.
Return value
array The entity info.
See also
1 call to PublicFieldInfoEntity::getEntityInfo()
- PublicFieldInfoEntity::getFormSchemaAllowedValues in src/
Plugin/ resource/ Field/ PublicFieldInfo/ PublicFieldInfoEntity.php - Get allowed values for the form schema.
File
- src/
Plugin/ resource/ Field/ PublicFieldInfo/ PublicFieldInfoEntity.php, line 119 - Contains \Drupal\restful\Plugin\resource\Field\PublicFieldInfo\PublicFieldInfoEntity.
Class
Namespace
Drupal\restful\Plugin\resource\Field\PublicFieldInfoCode
protected function getEntityInfo($type = NULL) {
return entity_get_info($type ? $type : $this->entityType);
}