EntityConstraintViolationList::getByFields

public EntityConstraintViolationList::getByFields(array $field_names) Gets the violations of the given fields. When violations should be displayed for a sub-set of visible fields only, this method may be used to filter the set of visible violations first. Parameters string[] $field_names: The names of the fields to get violations for. Return value \Drupal\Core\Entity\EntityConstraintViolationListInterface A list of violations of the given fields. Overrides EntityConstraintViolationListInterfa

EntityConstraintViolationList::getByField

public EntityConstraintViolationList::getByField($field_name) Gets the violations of the given field. Parameters string $field_name: The name of the field to get violations for. Return value \Symfony\Component\Validator\ConstraintViolationListInterface The violations of the given field. Overrides EntityConstraintViolationListInterface::getByField File core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php, line 94 Class EntityConstraintViolationList Implements an entity constraint

EntityConstraintViolationList::filterByFields

public EntityConstraintViolationList::filterByFields(array $field_names) Filters this violation list by the given fields. The returned object just has violations attached to the provided fields. When violations should be displayed for a sub-set of visible fields only, this method may be used to filter the set of visible violations first. Parameters string[] $field_names: The names of the fields to filter violations for. Return value $this Overrides EntityConstraintViolationListInterface::filt

EntityConstraintViolationList::filterByFieldAccess

public EntityConstraintViolationList::filterByFieldAccess(AccountInterface $account = NULL) 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 Overrides EntityConstraintViolationListInterfa

EntityConstraintViolationList::add

public EntityConstraintViolationList::add(ConstraintViolationInterface $violation) Adds a constraint violation to this list. Parameters ConstraintViolationInterface $violation The violation to add.: Overrides ConstraintViolationList::add File core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php, line 186 Class EntityConstraintViolationList Implements an entity constraint violation list. Namespace Drupal\Core\Entity Code public function add(ConstraintViolationInterface $violat

EntityConstraintViolationList::$violationOffsetsByField

Violation offsets grouped by field. Keys are field names, values are arrays of violation offsets. Type: array[]|null File core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php, line 40 Class EntityConstraintViolationList Implements an entity constraint violation list. Namespace Drupal\Core\Entity Code protected $violationOffsetsByField;

EntityConstraintViolationList::$entityViolationOffsets

Violations offsets of entity level violations. Type: int[]|null File core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php, line 31 Class EntityConstraintViolationList Implements an entity constraint violation list. Namespace Drupal\Core\Entity Code protected $entityViolationOffsets;

EntityConstraintViolationList::$entity

The entity that has been validated. Type: \Drupal\Core\Entity\FieldableEntityInterface File core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php, line 24 Class EntityConstraintViolationList Implements an entity constraint violation list. Namespace Drupal\Core\Entity Code protected $entity;

EntityConstraintViolationList

Implements an entity constraint violation list. Hierarchy class \Symfony\Component\Validator\ConstraintViolationList implements \IteratorAggregate, \Symfony\Component\Validator\ConstraintViolationListInterface class \Drupal\Core\Entity\EntityConstraintViolationList implements EntityConstraintViolationListInterface uses StringTranslationTrait File core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php, line 15 Namespace Drupal\Core\Entity Members Name Modifiers Type Descr

EntityConfirmFormBase::save

public EntityConfirmFormBase::save(array $form, FormStateInterface $form_state) The save() method is not used in EntityConfirmFormBase. This overrides the default implementation that saves the entity. Confirmation forms should override submitForm() instead for their logic. Overrides EntityForm::save File core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php, line 94 Class EntityConfirmFormBase Provides a generic base class for an entity-based confirmation form. Namespace Drupal\Core\En