public function settingsDefaultValues(Event $event, Entity $plugin)
    {
        if ($plugin->has('name')) {
            return (array)$this->trigger("Plugin.{$plugin->name}.settingsDefaults", $plugin)->result;
        }

        return [];
    }
public function settingsDefaultValues(Event $event, Entity $plugin)
    {
        if ($plugin->has('name')) {
            return (array)$this->trigger("Plugin.{$plugin->name}.settingsDefaults", $plugin)->result;
        }

        return [];
    }
public function settingsDefaultValues ( Event $ event , Entity $ plugin ) { if ( $ plugin -> has ( 'name' ) ) { return ( array ) $ this -> trigger ( "Plugin.{$plugin->name}.settingsDefaults" , $ plugin ) -> result ; } return [ ] ; }
Here we set default values for plugin's settings.

Triggers the `Plugin.<PluginName>.settingsDefaults` event, event listeners
should catch the event and return an array as `key` => `value` with default
values.

@param \Cake\Event\Event $event The event that was triggered
@param \Cake\ORM\Entity $plugin The plugin entity where to put those values
@return array
Here we set default values for plugin s settings .