You are here

changed_fields_basic_usage.module in Changed Fields API 8

File

examples/changed_fields_basic_usage/changed_fields_basic_usage.module
View source
<?php

/**
 * @file
 * Contains changed_fields_basic_usage.module.
 */
use Drupal\node\NodeInterface;

/**
 * Implements hook_node_presave().
 */
function changed_fields_basic_usage_node_presave(NodeInterface $node) {
  \Drupal::service('changed_fields.node_subject')
    ->checkNodeFields($node);
}

Functions

Namesort descending Description
changed_fields_basic_usage_node_presave Implements hook_node_presave().