class EntityConstraintViolationList

Implements an entity constraint violation list.

Hierarchy

File

core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php, line 15

Namespace

Drupal\Core\Entity

Members

Name Modifiers Type Description
ConstraintViolationList::$violations private property
ConstraintViolationList::addAll public function Merges an existing violation list into this list. Overrides ConstraintViolationListInterface::addAll
ConstraintViolationList::count public function
ConstraintViolationList::get public function Returns the violation at a given offset. Overrides ConstraintViolationListInterface::get
ConstraintViolationList::getIterator public function
ConstraintViolationList::has public function Returns whether the given offset exists. Overrides ConstraintViolationListInterface::has
ConstraintViolationList::offsetExists public function
ConstraintViolationList::offsetGet public function
ConstraintViolationList::offsetSet public function
ConstraintViolationList::offsetUnset public function
ConstraintViolationList::__toString public function Converts the violation into a string for debugging purposes.
EntityConstraintViolationList::$entity protected property The entity that has been validated.
EntityConstraintViolationList::$entityViolationOffsets protected property Violations offsets of entity level violations.
EntityConstraintViolationList::$violationOffsetsByField protected property Violation offsets grouped by field.
EntityConstraintViolationList::add public function Adds a constraint violation to this list. Overrides ConstraintViolationList::add
EntityConstraintViolationList::filterByFieldAccess public function Filters this violation list to apply for accessible fields only. Overrides EntityConstraintViolationListInterface::filterByFieldAccess
EntityConstraintViolationList::filterByFields public function Filters this violation list by the given fields. Overrides EntityConstraintViolationListInterface::filterByFields
EntityConstraintViolationList::getByField public function Gets the violations of the given field. Overrides EntityConstraintViolationListInterface::getByField
EntityConstraintViolationList::getByFields public function Gets the violations of the given fields. Overrides EntityConstraintViolationListInterface::getByFields
EntityConstraintViolationList::getEntity public function The entity which has been validated. Overrides EntityConstraintViolationListInterface::getEntity
EntityConstraintViolationList::getEntityViolations public function Gets violations flagged on entity level, not associated with any field. Overrides EntityConstraintViolationListInterface::getEntityViolations
EntityConstraintViolationList::getFieldNames public function Returns the names of all violated fields. Overrides EntityConstraintViolationListInterface::getFieldNames
EntityConstraintViolationList::groupViolationOffsets protected function Groups violation offsets by field and entity level.
EntityConstraintViolationList::remove public function Removes a violation at a given offset. Overrides ConstraintViolationList::remove
EntityConstraintViolationList::set public function Sets a violation at a given offset. Overrides ConstraintViolationList::set
EntityConstraintViolationList::__construct public function Overrides ConstraintViolationList::__construct
StringTranslationTrait::$stringTranslation protected property The string translation service.
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use.
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.

© 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/class/EntityConstraintViolationList/8.1.x