public function UpdateService::update8807 in Apigee API Catalog 8.2
This will set the field field_apidoc_spec_file_source as not required.
File
- src/
UpdateService.php, line 339
Class
- UpdateService
- Class UpdateService.
Namespace
Drupal\apigee_api_catalogCode
public function update8807() {
$field = FieldConfig::loadByName('node', 'apidoc', 'field_apidoc_spec_file_source');
$field
->set('required', FALSE)
->save();
// Clear all caches.
drupal_flush_all_caches();
return 'Updated field_apidoc_spec_file_source required attribute to false.';
}