public function UpdateUtils::supportsRevisionUpdates in Scheduled Updates 8
Determine a scheduled update type supports creating new revisions on update.
This is determined by the entity type it updates.
Parameters
\Drupal\scheduled_updates\ScheduledUpdateTypeInterface $scheduledUpdateType:
Return value
bool
Overrides UpdateUtilsInterface::supportsRevisionUpdates
1 call to UpdateUtils::supportsRevisionUpdates()
- UpdateUtils::isRevisionableUpdate in src/
UpdateUtils.php - Determines if an update supports revisions
File
- src/
UpdateUtils.php, line 54
Class
- UpdateUtils
- Service to determine information about Scheduled Update Types.
Namespace
Drupal\scheduled_updatesCode
public function supportsRevisionUpdates(ScheduledUpdateTypeInterface $scheduledUpdateType) {
$type_definition = $this
->getUpdateTypeDefinition($scheduledUpdateType);
if ($type_definition && $type_definition
->isRevisionable()) {
return TRUE;
}
return FALSE;
}