Rename `<af-model>` to `<af-entity>` to better match API terminology
[civicrm-core.git] / ext / afform / core / afform.php
index ba3f5c2ec5b87f83d8a116f06af87c7a832fc255..28caaf8952e810fad97237d63052614fe322d328 100644 (file)
@@ -217,7 +217,7 @@ function afform_civicrm_alterAngular($angular) {
 
 function _afform_getMetadata(phpQueryObject $doc) {
   $entities = [];
-  foreach ($doc->find('af-model') as $afmModelProp) {
+  foreach ($doc->find('af-entity') as $afmModelProp) {
     $entities[$afmModelProp->getAttribute('name')] = [
       'type' => $afmModelProp->getAttribute('type'),
     ];