protected function Articles__1_1::publicFields in RESTful 7.2
Public fields.
Return value
array The field definition array.
Overrides ResourceEntity::publicFields
File
- modules/
restful_example/ src/ Plugin/ resource/ node/ article/ v1/ Articles__1_1.php, line 39 - Contains \Drupal\restful_example\Plugin\resource\node\article\v1\Articles__1_1.
Class
- Articles__1_1
- Class Articles @package Drupal\restful\Plugin\resource
Namespace
Drupal\restful_example\Plugin\resource\node\article\v1Code
protected function publicFields() {
$public_fields = parent::publicFields();
unset($public_fields['self']);
return $public_fields;
}