function 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 91 
Class
- EntityConstraintViolationListInterface
- Interface for the result of entity validation.
Namespace
Drupal\Core\EntityCode
public function filterByFieldAccess(?AccountInterface $account = NULL);Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
