Created
July 24, 2017 07:24
-
-
Save miloskroulik/f9ef08b0d9b0f84e9efbbd1e1ab21bc2 to your computer and use it in GitHub Desktop.
[Executing action D8]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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