You are here

public function WorkflowItem::onChange in Workflow 8

Parameters

bool $notify: (optional) Whether to forward the notification to the parent. Defaults to TRUE. By passing FALSE, overrides of this method can re-use the logic of parent classes without triggering notification.

Overrides Map::onChange

File

src/Plugin/Field/FieldType/WorkflowItem.php, line 138

Class

WorkflowItem
Plugin implementation of the 'workflow' field type.

Namespace

Drupal\workflow\Plugin\Field\FieldType

Code

public function onChange($property_name, $notify = TRUE) {

  //workflow_debug(__FILE__, __FUNCTION__, __LINE__);  // @todo D8: test this snippet.

  // @todo D8: use this function onChange for adding a line in table workflow_transition_*
  // Enforce that the computed date is recalculated.

  //if ($property_name == 'value') {

  //  $this->date = NULL;

  //}
  parent::onChange($property_name, $notify);
}