Skip to content

Commit

Permalink
Merge pull request #385 from localgovdrupal/1.x
Browse files Browse the repository at this point in the history
1.7.10 release
  • Loading branch information
finnlewis authored Oct 8, 2024
2 parents 537bf08 + 4caf287 commit 38e4360
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Entity/AlertBannerEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Drupal\localgov_alert_banner\Entity;

use Drupal\condition_field\ConditionAccessResolver;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Entity\EditorialContentEntityBase;
use Drupal\Core\Entity\EntityChangedTrait;
Expand All @@ -11,6 +10,7 @@
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\RevisionableInterface;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\condition_field\ConditionAccessResolver;
use Drupal\user\UserInterface;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Form/AlertBannerEntityRevisionDeleteForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function getConfirmText() {
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state, AlertBannerEntityInterface $localgov_alert_banner_revision = NULL) {
public function buildForm(array $form, FormStateInterface $form_state, ?AlertBannerEntityInterface $localgov_alert_banner_revision = NULL) {
$this->revision = $localgov_alert_banner_revision;
$form = parent::buildForm($form, $form_state);

Expand Down
2 changes: 1 addition & 1 deletion src/Form/AlertBannerEntityRevisionRevertForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function getDescription() {
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state, AlertBannerEntityInterface $localgov_alert_banner_revision = NULL) {
public function buildForm(array $form, FormStateInterface $form_state, ?AlertBannerEntityInterface $localgov_alert_banner_revision = NULL) {
$this->revision = $localgov_alert_banner_revision;
$form = parent::buildForm($form, $form_state);

Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Menu/LocalTask/StatusFormTab.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class StatusFormTab extends LocalTaskDefault {
/**
* {@inheritdoc}
*/
public function getTitle(Request $request = NULL) {
public function getTitle(?Request $request = NULL) {
$alert_banner = $request->attributes->get('localgov_alert_banner');
if ($alert_banner instanceof AlertBannerEntityInterface) {
$controller = new AlertBannerEntityController();
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Functional/AlertBannerBlockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\Tests\localgov_alert_banner\Functional;

use Drupal\block\Entity\Block;
use Drupal\Tests\BrowserTestBase;
use Drupal\block\Entity\Block;

/**
* Functional tests for LocalGovDrupal Alert banner block.
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Functional/AlertConfirmationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\Tests\localgov_alert_banner\Functional;

use Drupal\localgov_alert_banner\Entity\AlertBannerEntity;
use Drupal\Tests\BrowserTestBase;
use Drupal\localgov_alert_banner\Entity\AlertBannerEntity;

/**
* Functional tests for LocalGovDrupal Alert banner confirmation form.
Expand Down
4 changes: 2 additions & 2 deletions tests/src/Functional/TranslationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Drupal\Tests\localgov_alert_banner\Functional;

use Drupal\Tests\BrowserTestBase;
use Drupal\Tests\node\Traits\NodeCreationTrait;
use Drupal\field\Entity\FieldConfig;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\node\NodeInterface;
use Drupal\Tests\BrowserTestBase;
use Drupal\Tests\node\Traits\NodeCreationTrait;

/**
* Functional tests for LocalGovDrupal Alert banner block.
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Functional/ViewsStatusLinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\Tests\localgov_alert_banner\Functional;

use Drupal\localgov_alert_banner\Entity\AlertBannerEntity;
use Drupal\Tests\BrowserTestBase;
use Drupal\localgov_alert_banner\Entity\AlertBannerEntity;

/**
* Tests the core Drupal\views\Plugin\views\StatusPageLink handler.
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Kernel/SchedulingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use Drupal\Core\Extension\MissingDependencyException;
use Drupal\KernelTests\KernelTestBase;
use Drupal\scheduled_transitions\Entity\ScheduledTransition;
use Drupal\Tests\node\Traits\ContentTypeCreationTrait;
use Drupal\Tests\node\Traits\NodeCreationTrait;
use Drupal\scheduled_transitions\Entity\ScheduledTransition;

/**
* Kernel test for scheduling transitions.
Expand Down

0 comments on commit 38e4360

Please sign in to comment.