You are here

class FlexiformFormEntityPartyFromUser in Flexiform 7

Form entity to get the party from a user.

Hierarchy

Expanded class hierarchy of FlexiformFormEntityPartyFromUser

1 string reference to 'FlexiformFormEntityPartyFromUser'
flexiform_flexiform_entity_getter_info in ./flexiform.flexiform.inc
Implements hook_flexiform_entity_getter_info().

File

includes/form_entity/party_from_user.form_entity.inc, line 10
Contains class for a basic entity getter.

View source
class FlexiformFormEntityPartyFromUser extends FlexiformFormEntityBase {

  /**
   * {@inheritdoc}
   */
  public function getEntity() {
    parent::getEntity();
    $settings = $this->settings;

    // Get the party entity.
    $user = $this
      ->getParam('user');
    if ($user) {
      return party_user_get_party($user);
    }
    return FALSE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FlexiformFormEntityBase::$entity_namespace public property The namespace of this entity.
FlexiformFormEntityBase::$entity_type public property The type of this entity.
FlexiformFormEntityBase::$getter public property Details of the getter.
FlexiformFormEntityBase::$manager public property The Flexiform Entity Manager
FlexiformFormEntityBase::$settings public property The settings for this entity on the flexiform.
FlexiformFormEntityBase::checkBundle public function Check bundle.
FlexiformFormEntityBase::configForm public function Get the Configuration Form. Overrides FlexiformFormEntityInterface::configForm 3
FlexiformFormEntityBase::configFormSubmit public function Submit the Configuration Form. Overrides FlexiformFormEntityInterface::configFormSubmit
FlexiformFormEntityBase::configFormValidate public function Validate the configuration form. Overrides FlexiformFormEntityInterface::configFormValidate
FlexiformFormEntityBase::getParam public function Get a Parameter From the Entity Manager.
FlexiformFormEntityBase::getParamSettings public function Get a Parameter's entity settings from the Entity Manager.
FlexiformFormEntityBase::getParamType public function Get the entity type of a parameter.
FlexiformFormEntityBase::saveEntity public function Save the entity upon submission of the form. Overrides FlexiformFormEntityInterface::saveEntity 5
FlexiformFormEntityBase::__construct public function Construct a Flexiform Form Entity class.
FlexiformFormEntityPartyFromUser::getEntity public function Get the entity for the form. Overrides FlexiformFormEntityBase::getEntity