You are here

function _cms_content_sync_add_save_push_action_submit in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 8 cms_content_sync.module \_cms_content_sync_add_save_push_action_submit()
  2. 2.1.x cms_content_sync.module \_cms_content_sync_add_save_push_action_submit()

Save and push submit handler.

_state

Parameters

$form:

1 string reference to '_cms_content_sync_add_save_push_action_submit'
_cms_content_sync_add_save_push_action in ./cms_content_sync.module
Add "Save and push" action.

File

./cms_content_sync.module, line 555
Module file for cms_content_sync.

Code

function _cms_content_sync_add_save_push_action_submit($form, $form_state) {
  $entity = $form_state
    ->getformObject()
    ->getEntity();
  PushChanges::pushChanges($form_state
    ->get('flow_id'), $entity, $entity
    ->getEntityTypeId());
}