You are here

ForwardFormBuilderInterface.php in Forward 8

Namespace

Drupal\forward

File

src/ForwardFormBuilderInterface.php
View source
<?php

namespace Drupal\forward;

use Drupal\Core\Entity\EntityInterface;

/**
 * Defines an interface for building a Forward inline form on an entity.
 */
interface ForwardFormBuilderInterface {

  /**
   * Builds a Forward inline form for a given entity.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   Entity for which the form is being built.
   * @param array $settings
   *   Array of settings.
   *
   * @return array
   *   A render array for the form.
   */
  public function buildForwardEntityForm(EntityInterface $entity, array $settings);

}

Interfaces

Namesort descending Description
ForwardFormBuilderInterface Defines an interface for building a Forward inline form on an entity.