public function UpdateUtils::getUpdateType in Scheduled Updates 8
Get the update type for an update.
Parameters
\Drupal\scheduled_updates\ScheduledUpdateInterface $update:
Return value
\Drupal\scheduled_updates\Entity\ScheduledUpdateType ;
Overrides UpdateUtilsInterface::getUpdateType
1 call to UpdateUtils::getUpdateType()
- UpdateUtils::isRevisionableUpdate in src/
UpdateUtils.php - Determines if an update supports revisions
File
- src/
UpdateUtils.php, line 90
Class
- UpdateUtils
- Service to determine information about Scheduled Update Types.
Namespace
Drupal\scheduled_updatesCode
public function getUpdateType(ScheduledUpdateInterface $update) {
return $this->entityTypeManager
->getStorage('scheduled_update_type')
->load($update
->bundle());
}