Skip to content

Instantly share code, notes, and snippets.

@wizonesolutions
Created October 25, 2014 22:47
Show Gist options
  • Save wizonesolutions/92cec4c94e708faef774 to your computer and use it in GitHub Desktop.
Save wizonesolutions/92cec4c94e708faef774 to your computer and use it in GitHub Desktop.
FillPDF in Drupal 8 scratch
<?php
/**
* Defines the entity for managing uploaded FillPDF forms.
*
* @ContentEntityType(
* id = "fillpdf_form",
* label = @Translation("FillPDF form"),
* admin_permission = "administer pdfs",
* base_table = "users",
* data_table = "users_field_data",
* label_callback = "user_format_name",
* translatable = TRUE,
* entity_keys = {
* "id" = "uid",
* "uuid" = "uuid"
* },
* links = {
* "canonical" = "entity.fillpdf_form.canonical",
* "edit-form" = "entity.fillpdf_form.edit_form",
* "delete-form" = "entity.fillpdf_form.cancel_form",
* },
* )
*/
class FillPdfForm extends ContentEntityBase {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment