function workspaces_post_update_update_deploy_form_display in Drupal 8
Add the workspace 'parent' field to the 'deploy' form display.
File
- core/
modules/ workspaces/ workspaces.post_update.php, line 141 - Post update functions for the Workspaces module.
Code
function workspaces_post_update_update_deploy_form_display() {
if ($form_display = EntityFormDisplay::load('workspace.workspace.deploy')) {
$form_display
->removeComponent('parent')
->save();
}
}