protected function setFormMode() {
    if ($this->getBundleEntity() !== NULL) {
      $bundle = $this->getBundleEntity()->id();

      // Set as variables, since the bundle might be different.
      $this->postViewDefault = 'post.' . $bundle . '.default';
      $this->postViewProfile = 'post.' . $bundle . '.profile';
      $this->postViewGroup = 'post.' . $bundle . '.group';
    }
  }
protected function setFormMode() {
    if ($this->getBundleEntity() !== NULL) {
      $bundle = $this->getBundleEntity()->id();

      // Set as variables, since the bundle might be different.
      $this->postViewDefault = 'post.' . $bundle . '.default';
      $this->postViewProfile = 'post.' . $bundle . '.profile';
      $this->postViewGroup = 'post.' . $bundle . '.group';
    }
  }
protected function setFormMode ( ) { if ( $ this -> getBundleEntity ( ) !== NULL ) { $ bundle = $ this -> getBundleEntity ( ) -> id ( ) ; // Set as variables, since the bundle might be different. $ this -> postViewDefault = 'post.' . $ bundle . '.default' ; $ this -> postViewProfile = 'post.' . $ bundle . '.profile' ; $ this -> postViewGroup = 'post.' . $ bundle . '.group' ; } }
Function to set the current form modes.

Retrieve the form display before it is overwritten in the parent.
Function to set the current form modes .