Skip to content

Commit

Permalink
Coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Jun 10, 2024
1 parent 9fabd44 commit 9f5f8ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin/search_api/processor/DgiImageDiscovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ public function addFieldValues(ItemInterface $item) {
$configuration = $field->getConfiguration();

// XXX: Adapted from https://git.drupalcode.org/project/search_api/-/blob/8.x-1.x/src/Plugin/search_api/processor/RenderedItem.php#L184-190
// If a (non-anonymous) role is selected, then also add the authenticated
// user role.
// If a (non-anonymous) role is selected, then also add the
// authenticated user role.
$roles = $configuration['roles'] ?? [RoleInterface::ANONYMOUS_ID];
$authenticated = RoleInterface::AUTHENTICATED_ID;
if (array_diff($roles, [$authenticated, RoleInterface::ANONYMOUS_ID])) {
Expand Down

0 comments on commit 9f5f8ae

Please sign in to comment.