Commit 8f8120a2 authored by jonathan1055's avatar jonathan1055 Committed by jonathan1055

Issue #3038746 by jonathan1055: Remove deprecated...

Issue #3038746 by jonathan1055: Remove deprecated EntityDefinitionUpdateManagerInterface::applyUpdates() from hook_install and hook_uninstall
parent a88ec4c2
......@@ -71,8 +71,6 @@ function scheduler_requirements($phase) {
* Implements hook_install().
*/
function scheduler_install() {
// Add our base fields to the schema.
\Drupal::service('entity.definition_update_manager')->applyUpdates();
// Set cron access key value, as this is now required in SchedulerCronForm.
$config = \Drupal::service('config.factory')->getEditable('scheduler.settings');
$config->set('lightweight_cron_access_key', substr(md5(rand()), 0, 20))
......@@ -83,8 +81,6 @@ function scheduler_install() {
* Implements hook_uninstall().
*/
function scheduler_uninstall() {
// Remove our base fields from the schema.
\Drupal::service('entity.definition_update_manager')->applyUpdates();
// Delete the scheduled content view.
\Drupal::configFactory()->getEditable('views.view.scheduler_scheduled_content')->delete();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment