function InternalViolation::getMessage

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Field/InternalViolation.php \Drupal\Core\Field\InternalViolation::getMessage()
  2. 10 core/lib/Drupal/Core/Field/InternalViolation.php \Drupal\Core\Field\InternalViolation::getMessage()

File

core/lib/Drupal/Core/Field/InternalViolation.php, line 80

Class

InternalViolation
Wraps a violation to allow arrayPropertyPath to be deprecated.

Namespace

Drupal\Core\Field

Code

public function getMessage() : string|\Stringable {
    return $this->violation
        ->getMessage();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.