In this blog, I created admin role save after event to save custom field data in table
create events.xml
file at app/code/<Vendor>/<Module>/etc/events.xml
XML
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="admin_permissions_role_prepare_save">
<observer name="magedad_module_observer_backend_admin_permissionsrolepreparesave_admin_permissions_role_prepare_save" instance="MageDad\Module\Observer\Backend\Admin\PermissionsRolePrepareSave"/>
</event>
</config>
Now Create observer PermissionsRolePrepareSave
for save field field_name
data in database.
Create file at path app/code/MageDad/Module/Observer/Backend/Admin/PermissionsRolePrepareSave.php
PHP
<?php
declare(strict_types=1);
namespace MageDad\Module\Observer\Backend\Admin;
class PermissionsRolePrepareSave implements \Magento\Framework\Event\ObserverInterface
{
/**
* Execute observer
*
* @param \Magento\Framework\Event\Observer $observer
* @return void
*/
public function execute(
\Magento\Framework\Event\Observer $observer
) {
$role = $observer->getEvent()->getObject();
$request = $observer->getEvent()->getRequest();
$data = $request->getPostValue();
if (isset($data['field_name'])) {
$fieldName = $data['field_name'];
$role->setData('field_name' , $fieldName);
}
}
}
I hope this blog is useful for save role field data in database. In case, I missed anything or need to add some more information, Don’t heisted to leave a comment in this blog, I’ll get back with some positive approach.
Keep liking 👍 Keep sharing 📣 Keep loving ❤️ Keep inspiring 🤩
12 Comments
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Your article helped me a lot, is there any more related content? Thanks! https://www.binance.info/join?ref=P9L9FQKY
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Explore the ranked best online casinos of 2025. Compare bonuses, game selections, and trustworthiness of top platforms for secure and rewarding gameplaycasino bonus.
What it does very nicely is help the physique shed water, and this naturally results in a physique that seems lighter
and extra outlined. Winstrol’s anabolic results will play some position in helping you do away
with fat – but only if you’re on a calorie-deficit food
regimen and doing intensive regular cardio work.
All anabolic steroids can doubtlessly cause all kinds of adverse impacts
on the liver. Some could be short-term solely whereas you’re utilizing the steroid, but others can prolong to a a lot longer-term
well being downside – and something involving your liver goes to be a critical health downside.
Abusing any steroid, together with Winstrol, at too excessive doses or for too lengthy intervals places your liver susceptible to harm.
Whether you opt for anabolic steroids under supervision or pursue natural supplementation, the key is clarity, consistency, and a commitment to your body’s well-being.
In countries like the U.S., Canada, and the U.K., steroids
are categorized as managed substances, requiring a prescription for legal use.
Throughout and after a cycle, the physique might battle to provide adequate
ranges of testosterone, estrogen, and DHEA—especially if steroid use has suppressed
pure hormone manufacturing.
Attempting to drag off too much weight is a common mistake for brand spanking new gear users.
Utilizing steroids will all be for nothing should you don’t
get your food plan and training right25. Again, this extremely depends on your goals and why you’re doing a cycle.
Bulking and cutting will have two very completely different diets and exercise methods.
Steroid stacks combine two or more compounds so you probably can mix their benefits and obtain greater results than using only one
compound alone. Beginner stacks can be easy, whereas advanced users can simply combine three or extra compounds in a cycle.
Hell, even novices can start with a simple stack with minimal threat so long as the fundamentals of dosage, cycle size, side effect management, and PCT are
followed.
Anavar is awesome, yet expensive, since you should take lots for results.
HCG isn’t recommended for ladies as a PCT because of it potentially enlarging ovaries (26) and causing virilization (27).
Clomid can also be not a positive PCT for ladies, as it may trigger the ovaries to turn out to be oversensitive.
Males produce testosterone in their testes, whereas ladies
produce testosterone in their ovaries. There have been no dosage
instructions particular to ladies when Anavar was first released.
This stack requires some severe financial funding, with Primo and HGH being costly.
If you’ll have the ability to swing it, the synergy that
HGH supplies with the effects of any steroid, including our gentle Primobolan, takes outcomes to a much higher level
than you’ll achieve with Primo alone. Testosterone is run to offset the AI results of
Primo and may either be dosed at TRT ranges or larger
doses if you’re on the lookout for increased gains. Testosterone Cypionate isn’t thought-about a super steroid for ladies
to make use of as a result of its excessive androgenic activity, which may cause virilizing unwanted aspect effects like physique hair progress and a deepened
voice. While ladies may use Testosterone Cypionate at very low doses,
generally, milder elliott Hulse steroids like
Anavar are considered rather more suitable for females. With Out optimum testosterone levels, we can’t build muscle, shed fats, or
preserve healthy and normal functioning in every part of life.
Stacking Testosterone Cypionate and Trenbolone is another highly effective bulking stack with huge gains attainable, and you won’t get the sort
of water retention that may be a problem when utilizing
Dianabol.
Some authorized steroids also stimulate the manufacturing of purple
blood cells so more oxygen may be delivered to the muscles
throughout exercises. Designed for men and women to bulk up quickly,
this stack presents everything you have to achieve speedy muscle gains in a safe,
legal, and extremely effective means. Whether Or Not you’re
a person who needs to achieve muscle and strength
or a woman who wants to construct lean muscle and power,
TestoPrime offers you amazing outcomes with a natural formula.
Its give attention to pure muscle-building mechanisms ensures that ladies can use it without worry of creating undesirable unwanted effects, whereas males can still experience important gains
in strength and muscle mass.
When it comes to bodybuilding and athletic performance, we primarily speak about steroids in the type of anabolic-androgenic steroids (AAS)3.
These steroids embody each pure and artificial androgens, which are derived from or based mostly on testosterone4.
The anabolic part promotes muscle progress, whereas the androgenic facet
relates to the stimulated improvement of male attributes
for which testosterone is responsible5. One of the first noticeable modifications is muscle growth and improved definition.
Nonetheless, it’s well known that despite the compound being the identical apart from the hooked up ester, oral Primobolan is not fairly as efficient as the injection, and this could
just be due to how the body takes it up. In any case, if the oral
kind is the only one you may get your arms on or don’t want to cope with injections, then it’s nonetheless nicely price using as long as you optimize your doses for one of the best outcomes.
The oral type of Primobolan is Metenolone
Acetate in chemical kind, with the acetate being a
small ester hooked up to the Metenolone hormone so it may be consumed in oral type.
Not Like many other oral steroids, Primobolan doesn’t
come with a high threat of liver toxicity; in reality, there
are nearly no identified causes of liver stress or harm attributable to this steroid.
For extra power, users might want to engage into weight
lifting as nicely, rather than just cardio.
Unfortunately, if unwanted effects regarding menstruation and
fertility do develop, they will continue to be an issue
even after you’ve stopped taking Clen. Clenbuterol
has not been studied in depth for its effects and risks in humans at performance doses, so
the precise cause of those critical complications isn’t nicely understood.
Improve the dosage by 10mcg each three days till you reach your desired maximum.
One Other effective option is to stack Deca Durabolin with an androgenic
steroid, similar to testosterone, increasing nitric oxide
and thus blood flow to the penis. Anecdotally, we
don’t discover Deca Durabolin to be among the most powerful steroids on this list;
however, its results on mass are to not be underestimated (especially when stacked with
other bulking AAS). However, users should be comfy running trenbolone-only
cycles first before serious about stacking it with other compounds as a outcome of its high cardiotoxicity.
Testosterone is especially androgenic; subsequently, zits vulgaris and
hair loss or recession can occur in bodybuilders susceptible to such side effects.
Testosterone additionally has potent fat-burning properties, with
customers experiencing a notable discount in subcutaneous fats.
Thus, despite testosterone’s highly effective anabolic nature, it
can additionally be used as a slicing steroid.