Skip to content
Snippets Groups Projects
Commit e7f56057 authored by Adam G-H's avatar Adam G-H
Browse files

Issue #3042675 by jkswoods, katherined, gun2dru, Sahana _N, Berdir, Sergiu...

Issue #3042675 by jkswoods, katherined, gun2dru, Sahana _N, Berdir, Sergiu Stici: Drupal 9 Deprecated Code Report
parent 495e79c7
No related branches found
Tags 8.x-1.0
No related merge requests found
......@@ -35,6 +35,7 @@
"source": "http://cgit.drupalcode.org/diff"
},
"require":{
"mkalkbrenner/php-htmldiff-advanced": "~0.0.8"
"mkalkbrenner/php-htmldiff-advanced": "~0.0.8",
"drupal/core": "^8.7.7 || ^9"
}
}
name: Diff
type: module
description: Shows changes between content revisions.
core: 8.x
core_version_requirement: ^8.7.7 || ^9
configure: diff.general_settings
......@@ -330,11 +330,4 @@ abstract class DiffLayoutBase extends PluginBase implements DiffLayoutInterface,
$config->save();
}
/**
* {@inheritdoc}
*/
public function calculateDependencies() {
return [];
}
}
......@@ -2,14 +2,14 @@
namespace Drupal\diff;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Plugin\PluginFormInterface;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
/**
* Builds a diff layout.
*/
interface DiffLayoutInterface extends PluginFormInterface, ConfigurablePluginInterface {
interface DiffLayoutInterface extends PluginFormInterface, ConfigurableInterface {
/**
* Builds a diff comparison between two revisions.
......
......@@ -134,13 +134,6 @@ abstract class FieldDiffBuilderBase extends PluginBase implements FieldDiffBuild
$this->configuration = $configuration + $this->defaultConfiguration();
}
/**
* {@inheritdoc}
*/
public function calculateDependencies() {
return array();
}
/**
* {@inheritdoc}
*/
......
......@@ -2,15 +2,15 @@
namespace Drupal\diff;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Plugin\PluginFormInterface;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
/**
* Builds a diff from field item list.
*/
interface FieldDiffBuilderInterface extends PluginFormInterface, ConfigurablePluginInterface {
interface FieldDiffBuilderInterface extends PluginFormInterface, ConfigurableInterface {
/**
* Builds an array of strings.
......
......@@ -2,14 +2,14 @@
namespace Drupal\diff;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Plugin\PluginFormInterface;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
/**
* Provides referenced entities to recurse in diff.
*/
interface FieldReferenceInterface extends PluginFormInterface, ConfigurablePluginInterface {
interface FieldReferenceInterface extends PluginFormInterface, ConfigurableInterface {
/**
* Builds an array of entities.
......
......@@ -222,7 +222,7 @@ class FieldsSettingsForm extends ConfigFormBase {
// In case settings are not identical to the ones in the config display
// a warning message. Don't display it twice.
if ($modified && empty($_SESSION['messages']['warning'])) {
drupal_set_message($this->t('You have unsaved changes.'), 'warning');
$this->messenger()->addWarning($this->t('You have unsaved changes.'));
}
$display_options['settings'] = $plugin_settings[$field_key]['settings'];
}
......@@ -488,7 +488,7 @@ class FieldsSettingsForm extends ConfigFormBase {
}
$config->save();
drupal_set_message($this->t('Your settings have been saved.'));
$this->messenger()->addStatus($this->t('Your settings have been saved.'));
}
/**
......
......@@ -212,7 +212,7 @@ class RevisionOverviewForm extends FormBase {
if ($revision->hasTranslation($langcode) && $revision->getTranslation($langcode)->isRevisionTranslationAffected()) {
$username = array(
'#theme' => 'username',
'#account' => $revision->getRevisionAuthor(),
'#account' => $revision->getRevisionUser(),
);
$revision_date = $this->date->format($revision->getRevisionCreationTime(), 'short');
// Use revision link to link to revisions that are not active.
......
description: Supports diff's automated tests.
core: 8.x
core_version_requirement: ^8.7.7 || ^9
dependencies:
- diff
- filter
- editor
- entity_test
- node
- diff:diff
- drupal:filter
- drupal:editor
- drupal:entity_test
- drupal:node
hidden: true
name: Diff tests
package: diff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment