24 'plugin_id' => $plugin_id,
29 $name = $this->getNamespacedPluginSettingName($plugin_id, $name);
32 return $this->setMetadata($name,
$value);
45 public function getPluginSetting(
string $plugin_id,
string $name,
$default = null) {
46 $name = $this->getNamespacedPluginSettingName($plugin_id, $name);
48 return $this->getMetadata($name) ??
$default;
59 public function removePluginSetting(
string $plugin_id,
string $name): bool {
60 $name = $this->getNamespacedPluginSettingName($plugin_id, $name);
63 return $this->deleteMetadata($name);
75 final public function getNamespacedPluginSettingName(
string $plugin_id,
string $name): string {
76 return "plugin:{$this->getType()}_setting:{$plugin_id}:{$name}";
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags...
const ELGG_DISABLE_SYSTEM_LOG
if(!$user||!$user->canDelete()) $name
$plugin_id
Remove all user and plugin settings from the give plugin ID.
_elgg_services()
Get the global service provider.