Problem/Motivation
For now, this route have the following requirements:
requirements:
_entity_access: 'root_parent.update'
This is nice in most cases because the Paragraph Access Handler is inline with this "access delegation" to the parent entity.
This is done in the following code:
// Delete permission on the paragraph, should just depend on 'update'
// access permissions on the parent.
$operation = ($operation == 'delete') ? 'update' : $operation;
To summarize, this is working because this route and the Access Handler are doing the same delegation
But what if someone want to create its own Paragraph access Access Handler and do not want to delegate the delete access to the update operation of the parent entity?
In this case, the route requirements is wrong.
Proposed resolution
CHange the requirments into _entity_access: 'paragraph.delete'
By doing this, the Access Handler and the route requirements are always inline.