interface ForwardFormBuilderInterface in Forward 4.0.x
Same name and namespace in other branches
- 4.x src/Services/ForwardFormBuilderInterface.php \Drupal\forward\Services\ForwardFormBuilderInterface
Defines an interface for building a Forward form for an entity.
Hierarchy
- interface \Drupal\forward\Services\ForwardFormBuilderInterface
Expanded class hierarchy of ForwardFormBuilderInterface
All classes that implement ForwardFormBuilderInterface
1 file declares its use of ForwardFormBuilderInterface
- ForwardFormFormatter.php in src/
Plugin/ Field/ FieldFormatter/ ForwardFormFormatter.php
File
- src/
Services/ ForwardFormBuilderInterface.php, line 10
Namespace
Drupal\forward\ServicesView source
interface ForwardFormBuilderInterface {
/**
* Builds a Forward form for a given entity.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* Entity for which the form is being built.
*
* @return array
* A render array for the form.
*/
public function buildForm(EntityInterface $entity);
/**
* Builds an inline Forward form for a given entity.
*
* When rendered, the form will be inside a collapsible fieldset.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* Entity for which the form is being built.
*
* @return array
* A render array for the form inside a details element.
*/
public function buildInlineForm(EntityInterface $entity);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ForwardFormBuilderInterface:: |
public | function | Builds a Forward form for a given entity. | 1 |
ForwardFormBuilderInterface:: |
public | function | Builds an inline Forward form for a given entity. | 1 |