class ReferenceEntityFormBuilder in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x modules/bibcite_entity/src/ReferenceEntityFormBuilder.php \Drupal\bibcite_entity\ReferenceEntityFormBuilder
Builds reference forms.
Hierarchy
- class \Drupal\Core\Entity\EntityFormBuilder implements EntityFormBuilderInterface uses DeprecatedServicePropertyTrait
- class \Drupal\bibcite_entity\ReferenceEntityFormBuilder
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_entityView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeprecatedServicePropertyTrait:: |
public | function | Allows to access deprecated/removed properties. | |
EntityFormBuilder:: |
protected | property | ||
EntityFormBuilder:: |
protected | property | The entity type manager service. | |
EntityFormBuilder:: |
public | function | Constructs a new EntityFormBuilder. | |
ReferenceEntityFormBuilder:: |
protected | property |
The form builder. Overrides EntityFormBuilder:: |
|
ReferenceEntityFormBuilder:: |
public | function |
Gets the built and processed entity form for the given entity. Overrides EntityFormBuilder:: |