Example #1
0
 /**
  * Get the update type for an update.
  *
  * @param \Drupal\scheduled_updates\ScheduledUpdateInterface $update
  *
  * @return \Drupal\scheduled_updates\Entity\ScheduledUpdateType ;
  */
 public function getUpdateType(ScheduledUpdateInterface $update) {
   return $this->entityTypeManager->getStorage('scheduled_update_type')->load($update->bundle());
 }