public $submitOnce = TRUE;
/**
- * Build the form object.
+ * Explicitly declare the entity api name.
+ */
+ public function getDefaultEntity(): string {
+ return 'ACLEntityRole';
+ }
+
+ /**
+ * http://adminui.localhost/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Facl%2Fentityrole&reset=1&action=add Build the form object.
*/
public function buildQuickForm() {
parent::buildQuickForm();
<page_callback>CRM_ACL_Page_EntityRole</page_callback>
<access_arguments>administer CiviCRM,access CiviCRM</access_arguments>
</item>
+ <item>
+ <path>civicrm/acl/entityrole/edit</path>
+ <title>Assign Users to ACL Roles</title>
+ <page_callback>CRM_ACL_Form_EntityRole</page_callback>
+ <access_arguments>administer CiviCRM,access CiviCRM</access_arguments>
+ </item>>
<item>
<path>civicrm/file</path>
<title>Browse Uploaded files</title>
<title>ACL Role Assignment</title>
<titlePlural>ACL Role Assignments</titlePlural>
<paths>
- <add>civicrm/acl/entityrole?reset=1&action=add</add>
- <delete>civicrm/acl/entityrole?reset=1&action=delete&id=[id]</delete>
- <update>civicrm/acl/entityrole?reset=1&action=update&id=[id]</update>
- <browse>civicrm/acl</browse>
+ <add>civicrm/acl/entityrole/edit?reset=1&action=add</add>
+ <delete>civicrm/acl/entityrole/edit?reset=1&action=delete&id=[id]</delete>
+ <update>civicrm/acl/entityrole/edit?reset=1&action=update&id=[id]</update>
+ <browse>civicrm/acl/entityrole</browse>
</paths>
<field>
<name>id</name>