EntityInterface::link() is deprecated in Drupal 8.0.0 and will be removed in Drupal 9.0.0
Change record: https://www.drupal.org/node/2614344
The code to change is in scheduler_api_test/scheduler_api_test.module which is covered by the SchedulerApiTest test.
The deprecation warnings are not generated in core 8.6, but they are at 8.7, although suppressed on d.o. The output from TravisCI testing is:
Remaining deprecation notices (4)
4x: EntityInterface::link() is deprecated in Drupal 8.0.0 and will be removed in Drupal 9.0.0. EntityInterface::toLink() instead. Note, the default relationship for configuration entities changes from 'edit-form' to 'canonical'. See https://www.drupal.org/node/2614344
2x in SchedulerApiTest::testAllowedUnpublishing from Drupal\Tests\scheduler\Functional
2x in SchedulerApiTest::testAllowedPublishing from Drupal\Tests\scheduler\Functional
Comments
Comment #2
jonathan1055 commentedLinked to parent issue.
Comment #3
idebr commentedAttached patch implements the following changes:
NodeInterfacetype casting tohook_scheduler_allow_publishing()/scheduler_api_test_scheduler_allow_unpublishing()in line with the documentation in scheduler.api.phpComment #4
jonathan1055 commentedThis looks good, thanks for the patch.
Comment #6
jonathan1055 commentedFixed and committed.
We should now get a clean pass of tests without any deprecation warnings on #3035104: [meta] Remove deprecated code flagged by @trigger_error messages for Drupal 9 compatibility at core 8.7 (although I have just noticed that drupal 8.8 is available to test against)