$this->
View()->
assign(['success' => true, 'data' =>
$data, 'total' => 1
]);
} /**
* Method to define acl dependencies in backend controllers
* <code>
* $this->addAclPermission("name_of_action_with_action_prefix","name_of_assigned_privilege","optionally error message");
* </code>
*/
protected function initAcl() { $namespace =
Shopware()->
Snippets()->
getNamespace('backend/supplier'
);
$this->
addAclPermission('getSuppliersAction', 'read',
$namespace->
get('no_list_rights', 'Read access denied.'
));
$this->
addAclPermission('deleteSupplierAction', 'delete',
$namespace->
get('no_list_rights', 'Delete access denied.'
));
$this->
addAclPermission('updateSupplierAction', 'update',
$namespace->
get('no_update_rights', 'Update access denied.'
));
$this->
addAclPermission('createSupplierAction', 'create',
$namespace->
get('no_create_rights', 'Create access denied.'
));
} /**
* Internal helper function to get access to the form repository.
*/
private function getRepository(): Repository
{