Skip to content
Snippets Groups Projects
Commit 244fcc49 authored by Marcin Grabias's avatar Marcin Grabias
Browse files

Issue #3424303: Added missing use statement.

parent 706a6a60
Branches 1.2.x
Tags 1.2.1
No related merge requests found
Pipeline #149271 failed
......@@ -9,6 +9,7 @@ declare(strict_types=1);
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Access\AccessResultInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\group\Entity\GroupInterface;
......@@ -50,7 +51,7 @@ function group_clone_group_access(GroupInterface $group, string $operation, Acco
/**
* Implements hook_entity_operation_alter().
*/
function group_clone_entity_operation_alter(array &$operations, EntityInterface $entity) {
function group_clone_entity_operation_alter(array &$operations, EntityInterface $entity): void {
// Change duplicate to clone for consistency if such operation exists.
// (Entity module possibly).
if ($entity->getEntityTypeId() === 'group' && \array_key_exists('duplicate', $operations)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment