public function EntityConstraintViolationList::__construct
public EntityConstraintViolationList::__construct(FieldableEntityInterface $entity, array $violations = array())
Parameters
\Drupal\Core\Entity\FieldableEntityInterface $entity: The entity that has been validated.
array $violations: The array of violations.
Overrides ConstraintViolationList::__construct
File
- core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php, line 50
Class
- EntityConstraintViolationList
- Implements an entity constraint violation list.
Namespace
Drupal\Core\EntityCode
public function __construct(FieldableEntityInterface $entity, array $violations = array()) { parent::__construct($violations); $this->entity = $entity; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityConstraintViolationList.php/function/EntityConstraintViolationList::__construct/8.1.x