You are here

interface FlexiformFormEntityInterface in Flexiform 8

Interface for form entity plugins.

Hierarchy

Expanded class hierarchy of FlexiformFormEntityInterface

All classes that implement FlexiformFormEntityInterface

2 files declare their use of FlexiformFormEntityInterface
flexiform.api.php in ./flexiform.api.php
Hooks specific to flexiform.
FormEntityBaseForm.php in src/Form/FormEntityBaseForm.php

File

src/FormEntity/FlexiformFormEntityInterface.php, line 11

Namespace

Drupal\flexiform\FormEntity
View source
interface FlexiformFormEntityInterface extends ContextAwarePluginInterface {

  /**
   * Get the context.
   *
   * @return \Drupal\Core\Plugin\Context\ContextInterface
   *   The form entity context.
   */
  public function getFormEntityContext();

  /**
   * Get the context definition.
   */
  public function getFormEntityContextDefinition();

  /**
   * Get the label for this plugin.
   */
  public function getLabel();

  /**
   * Get the entity type.
   */
  public function getEntityType();

  /**
   * Get the bundle.
   */
  public function getBundle();

  /**
   * Prepare a configuration form.
   */
  public function configurationForm(array $form, FormStateInterface $form_state);

  /**
   * Validate the configuration form.
   */
  public function configurationFormValidate(array $form, FormStateInterface $form_state);

  /**
   * Submit the configuration form.
   */
  public function configurationFormSubmit(array $form, FormStateInterface $form_state);

}

Members

Namesort descending Modifiers Type Description Overrides
ContextAwarePluginInterface::getContext public function Gets a defined context. 1
ContextAwarePluginInterface::getContextDefinition public function Gets a specific context definition of the plugin. Overrides ContextAwarePluginInterface::getContextDefinition
ContextAwarePluginInterface::getContextDefinitions public function Gets the context definitions of the plugin. Overrides ContextAwarePluginInterface::getContextDefinitions
ContextAwarePluginInterface::getContextMapping public function Gets a mapping of the expected assignment names to their context names. 1
ContextAwarePluginInterface::getContexts public function Gets the defined contexts. 1
ContextAwarePluginInterface::getContextValue public function Gets the value for a defined context. 1
ContextAwarePluginInterface::getContextValues public function Gets the values for all defined contexts. 1
ContextAwarePluginInterface::setContext public function Set a context on this plugin. 1
ContextAwarePluginInterface::setContextMapping public function Sets a mapping of the expected assignment names to their context names. 1
ContextAwarePluginInterface::setContextValue public function Sets the value for a defined context. 1
ContextAwarePluginInterface::validateContexts public function Validates the set values for the defined contexts. 1
FlexiformFormEntityInterface::configurationForm public function Prepare a configuration form. 1
FlexiformFormEntityInterface::configurationFormSubmit public function Submit the configuration form. 1
FlexiformFormEntityInterface::configurationFormValidate public function Validate the configuration form. 1
FlexiformFormEntityInterface::getBundle public function Get the bundle. 1
FlexiformFormEntityInterface::getEntityType public function Get the entity type. 1
FlexiformFormEntityInterface::getFormEntityContext public function Get the context. 1
FlexiformFormEntityInterface::getFormEntityContextDefinition public function Get the context definition. 1
FlexiformFormEntityInterface::getLabel public function Get the label for this plugin. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2