EntityConstraintViolationList::getFieldNames

public EntityConstraintViolationList::getFieldNames()

Returns the names of all violated fields.

Return value

string[] An array of field names.

Overrides EntityConstraintViolationListInterface::getFieldNames

File

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

Class

EntityConstraintViolationList
Implements an entity constraint violation list.

Namespace

Drupal\Core\Entity

Code

public function getFieldNames() {
  $this->groupViolationOffsets();
  return array_keys($this->violationOffsetsByField);
}
doc_Drupal
2016-10-29 09:04:47
Comments
Leave a Comment

Please login to continue.