Drual 8 Webform as internal Notification System

Drupal 8 Webform Is Awesome ! (formally known as ymalform)  the idea of having a internal notification system is a cool idea and some times you need to implement it ...
lets see an example of how you would do it with the webform module

so first you need to figure out when you want to send an notification and then to who ... this will most likely come in the form of EventSubscribers see

Drupal 8 WorkBench EventSubscriber Example

Drupal 8 Event subscriber example for work bench moderation module.
say you want to do some thing when a work bench state changes ... this will get the logged in user vs the node content creator and get there enmails etc.

Service File:

    class: Drupal\test_even_subscriber\EventSubscriber\DefaultSubscriber
    arguments: ['@current_user']
      - { name: event_subscriber }


Drupal 8 Custom form display Modes

ok to get custom form display modes working in your module .... after some time of messing with this I seem to have it working:
and here is how...

1) create your form display and get id from url
at :admin/structure/display-modes/form/manage/

"Test This" gives m name ... node.test_this

in your modules

Drupal 8 inline_template in a form example

in your module file

 * Implements hook_theme().
function mymodule_theme($existing, $type, $theme, $path) {
  return [
    'application_dialog_box' => [
      'variables' => [
        'diolog_id' => 'na',
        'diolog_title' => 'na',
        'diolog_text' => 'na',
       'someother_thing' => [],
      'template' => 'application-dialog-box',



in your form or alter

Drupal 8 ConfigEntityType Entity Query example

so you are using a ConfigEntityType in drupal 8 and you want to know how to do an entity query will you are in luck say you have defined a custom key in your MODULE / config /schema / your_entity.schema.yml file


      type: string
      label: 'color'

Now in your entity class (the one where you put

 *   id = "your_entity_type",

Ajax Easy Module commit 7/4/2016

Right so had an idea for a new Drupal ajax module, to help front-enders hook in to drupal and return ... well what ever they want via ajax.

Meant to be used by people who know what they are doing ...
check out the nice looking code

sandbox project link