Skip to content

Commit

Permalink
Update field for validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant-bd committed Nov 22, 2023
1 parent 5e3c030 commit e8f8d9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions islandora_entity_status.module
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ function islandora_entity_status_media_presave(MediaInterface $media) {
/**
* Implements hook_ENTITY_TYPE_update().
*/
function islandora_entity_status_islandora_object_update(EntityInterface $entity) {
function islandora_entity_status_node_update(EntityInterface $entity) {
// Check if the entity is a node with the bundle "islandora_object".
if ($entity->hasField(IslandoraUtils::MEDIA_OF_FIELD)) {
if ($entity->hasField(IslandoraUtils::MEMBER_OF_FIELD)) {
// Get the current node ID.
$nid = $entity->id();

Expand Down

0 comments on commit e8f8d9b

Please sign in to comment.