function acquia_lift_form_node_type_form_alter in Acquia Lift Connector 8
Implements hook_form_FORM_ID_alter().
File
- ./
acquia_lift.module, line 79 - Drupal Module: Acquia Lift
Code
function acquia_lift_form_node_type_form_alter(array &$form, FormStateInterface &$form_state) {
$node_type = $form_state
->getFormObject()
->getEntity()
->id();
$form['acquia_lift'] = \Drupal::service('acquia_lift.service.helper.node_type_thumbnail_form_helper')
->getForm($node_type);
$form['actions']['submit']['#submit'][] = 'acquia_lift_form_node_type_form_submit';
}