Expose a plan_record edit form at /plan/record/%id/edit.

This commit is contained in:
Michael Stenta 2024-01-31 09:36:30 -05:00
parent a79a2989a8
commit bd091b7d39
1 changed files with 9 additions and 0 deletions

View File

@ -25,6 +25,12 @@ use Drupal\Core\Field\BaseFieldDefinition;
* ),
* handlers = {
* "access" = "Drupal\plan\Access\PlanRecordAccess",
* "form" = {
* "edit" = "Drupal\Core\Entity\ContentEntityForm",
* },
* "route_provider" = {
* "default" = "Drupal\Core\Entity\Routing\AdminHtmlRouteProvider",
* },
* },
* base_table = "plan_record",
* data_table = "plan_record_data",
@ -36,6 +42,9 @@ use Drupal\Core\Field\BaseFieldDefinition;
* },
* bundle_entity_type = "plan_record_type",
* common_reference_target = TRUE,
* links = {
* "edit-form" = "/plan/record/{plan_record}/edit",
* },
* )
*/
class PlanRecord extends ContentEntityBase implements PlanRecordInterface {