Issue #3391677 by bohart: Added support both hook_form_BASE_FORM_ID_alter and hook_form_FORM_ID_alter hooks for MailerPolicy entity edit form.
1 unresolved thread
Compare changes
+ 17
− 0
@@ -10,6 +10,23 @@ use Drupal\Core\Form\FormStateInterface;
I suggest we should use
$this->getEntity()->id()
instead of these two. It will include the type, sub-type and entity ID of the mailer policy, in a format that is already well-known.