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); }
Please login to continue.