1 vote
Accepted

What's the attribute of a Matrix field to add error message

Matrix blocks are elements themselves, so the individual fields of a matrix block aren't available as properties on the entry. In the entry save hook, the only thing you can add errors to (that will ...
user avatar
  • 6,315
1 vote

What's the best practice for creating computed (dynamic/virtual) attributes on entries?

You can use behaviors to add new methods to system components. See the link above for documentation. A behavior is a class that extends yii\base\Behavior and is attached to a component using the ...
user avatar
  • 6,315

Only top scored, non community-wiki answers of a minimum length are eligible