Skip to content

Instantly share code, notes, and snippets.

@miloskroulik
Created July 24, 2017 07:24
Show Gist options
  • Select an option

  • Save miloskroulik/f9ef08b0d9b0f84e9efbbd1e1ab21bc2 to your computer and use it in GitHub Desktop.

Select an option

Save miloskroulik/f9ef08b0d9b0f84e9efbbd1e1ab21bc2 to your computer and use it in GitHub Desktop.
[Executing action D8]
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Component\Utility\Html;
use Drupal\moli_user\Service\UserNotifications;
+use Drupal\system\Entity\Action;
/**
* Implements hook_theme().
*/
function moli_user_theme($existing, $type, $theme, $path) {
@@ -757,10 +758,11 @@ function moli_user_comment_insert(Drupal\Core\Entity\EntityInterface $entity) {
[
':link' => $entity->toUrl()->setAbsolute()->toString(),
'@name' => $article->label()
]
);
+ Action::load('odeslat_e_mail_po_vlozeni_komentare')->execute([$entity]);
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment