/** * @param \Drupal\scheduled_updates\ScheduledUpdateTypeInterface $scheduledUpdateType * * @param $types * * @return bool */ public function updateSupportsTypes(ScheduledUpdateTypeInterface $scheduledUpdateType, $types) { $plugin_id = $scheduledUpdateType->getUpdateRunnerSettings()['id']; if ($this->runnerManager->hasDefinition($plugin_id)) { $definition = $this->runnerManager->getDefinition($plugin_id); $unsupported_types = array_diff($types, $definition['update_types']); return empty($unsupported_types); } return FALSE; }