Skip to content

Commit

Permalink
Update FencesBlock.php
Browse files Browse the repository at this point in the history
Fixed 8.7.x compatibility where buildBlockEntity throws an error for the 2nd Parameter $entity which was typed as Drupal\Core\Entity\Entity before.
  • Loading branch information
JPustkuchen authored Jun 4, 2019
1 parent 11a3e58 commit 21710e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FencesBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Drupal\fences_block;

use Drupal\Core\Config\Entity\ThirdPartySettingsInterface;
use Drupal\Core\Entity\Entity;
use Drupal\block\BlockInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\block\Entity\Block;
Expand Down Expand Up @@ -96,7 +96,7 @@ public static function addConfigForm(array &$form, FormStateInterface $form_stat
*
* @param string $entity_type_id
* The entity type identifier.
* @param \Drupal\Core\Entity\Entity $entity
* @param \Drupal\block\BlockInterface $entity
* The entity object.
* @param array &$form
* An array of form elements.
Expand All @@ -105,7 +105,7 @@ public static function addConfigForm(array &$form, FormStateInterface $form_stat
*/
public static function buildBlockEntity(
$entity_type_id,
Entity $entity,
BlockInterface $entity,
array &$form,
FormStateInterface &$form_state
) {
Expand Down

0 comments on commit 21710e8

Please sign in to comment.