code: func (f *PluginFilter) SetTask(t *api.Task) bool {
  	c := t.Spec.GetContainer()
  
  	var volumeTemplates bool
  	if c != nil {
  		for _, mount := range c.Mounts {
  			if referencesVolumePlugin(mount) {
  				volumeTemplates = true
  				break
  			}
  		}
  	}
  
  	if (c != nil && volumeTemplates) || len(t.Networks) > 0 || t.Spec.LogDriver != nil {
  		f.t = t
  		return true
  	}
  
  	return false
  }
docs: // SetTask returns true when the filter is enabled for a given task.