public function ItemInterface::getAccessResult in Search API 8
Checks whether a user has permission to view this item.
Parameters
\Drupal\Core\Session\AccountInterface|null $account: (optional) The user for which to check access, or NULL to check access for the current user.
Return value
\Drupal\Core\Access\AccessResultInterface The access result.
1 method overrides ItemInterface::getAccessResult()
- Item::getAccessResult in src/
Item/ Item.php - Checks whether a user has permission to view this item.
File
- src/
Item/ ItemInterface.php, line 316
Class
- ItemInterface
- Represents a search item being indexed or returned as a search result.
Namespace
Drupal\search_api\ItemCode
public function getAccessResult(AccountInterface $account = NULL);