public function EntityConstraintViolationListInterface::filterByFieldAccess in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php \Drupal\Core\Entity\EntityConstraintViolationListInterface::filterByFieldAccess()
Filters this violation list to apply for accessible fields only.
Violations for inaccessible fields are removed so the returned object just has the remaining violations.
Parameters
\Drupal\Core\Session\AccountInterface $account: (optional) The user for which to check access, or NULL to check access for the current user. Defaults to NULL.
Return value
$this
1 method overrides EntityConstraintViolationListInterface::filterByFieldAccess()
- EntityConstraintViolationList::filterByFieldAccess in core/
lib/ Drupal/ Core/ Entity/ EntityConstraintViolationList.php - Filters this violation list to apply for accessible fields only.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityConstraintViolationListInterface.php, line 82 - Contains \Drupal\Core\Entity\EntityConstraintViolationListInterface.
Class
- EntityConstraintViolationListInterface
- Interface for the result of entity validation.
Namespace
Drupal\Core\EntityCode
public function filterByFieldAccess(AccountInterface $account = NULL);