Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a generic entity revert controller. #17

Merged
merged 10 commits into from
Feb 14, 2016

Conversation

dawehner
Copy link
Collaborator

No description provided.

class RevisionRevertForm extends ConfirmFormBase {

/**
* The node revision.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the node revision :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@dawehner
Copy link
Collaborator Author

We now have a base class

* @return \Drupal\Core\Entity\RevisionableInterface
* The prepared revision ready to be stored.
*/
protected function prepareRevertedRevision(RevisionableInterface $revision) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prepareRevertedRevision feels wrong if the revision hasn't been reverted yet.
Perhaps just prepareRevision() then?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about prepareRevisionRevert ?

bojanz added a commit that referenced this pull request Feb 14, 2016
Provide a generic entity revert controller.
@bojanz bojanz merged commit d700dd6 into fago:8.x-1.x Feb 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants