You are here

class ReferenceEntityFormBuilder in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/ReferenceEntityFormBuilder.php \Drupal\bibcite_entity\ReferenceEntityFormBuilder

Builds reference forms.

Hierarchy

Expanded class hierarchy of ReferenceEntityFormBuilder

1 string reference to 'ReferenceEntityFormBuilder'
bibcite_entity.services.yml in modules/bibcite_entity/bibcite_entity.services.yml
modules/bibcite_entity/bibcite_entity.services.yml
1 service uses ReferenceEntityFormBuilder
reference_entity.form_builder in modules/bibcite_entity/bibcite_entity.services.yml
Drupal\bibcite_entity\ReferenceEntityFormBuilder

File

modules/bibcite_entity/src/ReferenceEntityFormBuilder.php, line 12

Namespace

Drupal\bibcite_entity
View source
class ReferenceEntityFormBuilder extends EntityFormBuilder {

  /**
   * The form builder.
   *
   * @var \Drupal\bibcite_entity\ReferenceFormBuilder
   */
  protected $formBuilder;

  /**
   * {@inheritdoc}
   */
  public function getForm(EntityInterface $entity, $operation = 'default', array $form_state_additions = []) {
    if ($data = $this->formBuilder
      ->restoreFromCache()) {
      $entity = $data;
    }
    return parent::getForm($entity, $operation, $form_state_additions);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DeprecatedServicePropertyTrait::__get public function Allows to access deprecated/removed properties.
EntityFormBuilder::$deprecatedProperties protected property
EntityFormBuilder::$entityTypeManager protected property The entity type manager service.
EntityFormBuilder::__construct public function Constructs a new EntityFormBuilder.
ReferenceEntityFormBuilder::$formBuilder protected property The form builder. Overrides EntityFormBuilder::$formBuilder
ReferenceEntityFormBuilder::getForm public function Gets the built and processed entity form for the given entity. Overrides EntityFormBuilder::getForm