public static function ResourceFieldBase::emptyDiscoveryInfo in RESTful 7.2
Returns the basic discovery information for a given field.
Parameters
string $name: The name of the public field.
Return value
array The array of information ready to be encoded.
2 calls to ResourceFieldBase::emptyDiscoveryInfo()
- ResourceFieldEntity::autoDiscovery in src/
Plugin/ resource/ Field/ ResourceFieldEntity.php - ResourceFieldResource::autoDiscovery in src/
Plugin/ resource/ Field/ ResourceFieldResource.php
File
- src/
Plugin/ resource/ Field/ ResourceFieldBase.php, line 416 - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldBase.
Class
Namespace
Drupal\restful\Plugin\resource\FieldCode
public static function emptyDiscoveryInfo($name) {
$info = new PublicFieldInfoNull($name);
return $info
->prepare();
}