public function ngRestConfig($config) { // define fields for types based from ngrestAttributeTypes $this->ngRestConfigDefine($config, 'list', ['image']); $this->ngRestConfigDefine($config, ['create', 'update'], ['image']); // enable or disable ability to delete; $config->delete = false; return $config; }