/**
  * {@inheritdoc}
  */
 public function init()
 {
     $formType = new FormType();
     $formType->setPtd($this->container->getPtd());
     $formType->setEntity('FacebookAWD\\Plugin\\Connect\\Model\\LoginButton');
     $this->generator = FormFactory::createForm($this->container->getSlug() . '_generator', $formType);
     $this->generator->build();
     return $this;
 }
 /**
  * {@inheritdoc}
  */
 public function init()
 {
     //Init screen settings form
     $screen = $this->om->get($this->container->getSlug() . '.login');
     if (!$screen instanceof WPLoginScreen) {
         $screen = new WPLoginScreen();
     } else {
         $screen = clone $screen;
     }
     $formType = new FormType();
     $formType->setPtd($this->container->getPtd());
     $formType->setEntity('FacebookAWD\\Plugin\\Connect\\Model\\WPLoginScreen');
     $this->settingsForm = FormFactory::createForm($this->container->getSlug() . '_login', $formType, $screen);
     $this->settingsForm->build();
     return $this;
 }