You are here

interface ForwardFormBuilderInterface in Forward 4.x

Same name and namespace in other branches
  1. 4.0.x src/Services/ForwardFormBuilderInterface.php \Drupal\forward\Services\ForwardFormBuilderInterface

Defines an interface for building a Forward form for an entity.

Hierarchy

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\Services
View 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.
   * @param boolean $details
   *   TRUE if the form should be built inside a details element.
   *
   * @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

Namesort descending Modifiers Type Description Overrides
ForwardFormBuilderInterface::buildForm public function Builds a Forward form for a given entity. 1
ForwardFormBuilderInterface::buildInlineForm public function Builds an inline Forward form for a given entity. 1