code: function define() {
      if (this.data.loggedin || this.defaults.loggedin)  {
        this.pagelets.loginout = this.pagelets.loginout.extend({
          data: {
            href: '/logout',
            class: 'loginout right',
            text: '<s class="ss-icon ss-unlock" role="presentation"></s> Logout',
            title: 'Logout'
          }
        });
      }
  
      return this;
    }
docs: Set proper key and library based on the data.type.
  
  @return {Pagelet}
  @api private