function WorkspacesTestHooks::entityPresave

Implements hook_entity_presave().

Attributes

#[Hook('entity_presave')]

File

core/modules/workspaces/tests/modules/workspaces_test/src/Hook/WorkspacesTestHooks.php, line 56

Class

WorkspacesTestHooks
Hook implementations for workspaces_test.

Namespace

Drupal\workspaces_test\Hook

Code

public function entityPresave(EntityInterface $entity) : void {
  $this->incrementHookCount('hook_entity_presave', $entity);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.