I was trying to rename the uploaded file using the following code, unfortunately it returns an error as PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '3343-width' for key 'PRIMARY': INSERT INTO {file_metadata}
I want to disable or add permission (only administrator can access) to an existing route , path is /node/add/article because I've built a new form for creating article, I want editors use the new form instead of the default form at url /node/add/article .
HI I have a function as follows that returns a form with all the values populated, What I have been doing is then hiding the fields I don't want but was wondering if there is a way to just display the fields I do instead, can anyone assist please, for example how would I display just the title field.