You are here

interface ConfigEntityRevisionsOverviewFormBaseInterface in Config Entity Revisions 8.2

Same name and namespace in other branches
  1. 8 src/ConfigEntityRevisionsOverviewFormBaseInterface.php \Drupal\config_entity_revisions\ConfigEntityRevisionsOverviewFormBaseInterface
  2. 1.x src/ConfigEntityRevisionsOverviewFormBaseInterface.php \Drupal\config_entity_revisions\ConfigEntityRevisionsOverviewFormBaseInterface

Interface ConfigEntityRevisionsOverviewFormBaseInterface.

@package Drupal\config_entity_revisions

Controller to make library functions available to various consumers.

Hierarchy

Expanded class hierarchy of ConfigEntityRevisionsOverviewFormBaseInterface

All classes that implement ConfigEntityRevisionsOverviewFormBaseInterface

3 files declare their use of ConfigEntityRevisionsOverviewFormBaseInterface
ContactFormRevisionsOverviewForm.php in modules/contact_form_revisions/src/Form/ContactFormRevisionsOverviewForm.php
ViewRevisionsOverviewForm.php in modules/view_revisions/src/Form/ViewRevisionsOverviewForm.php
WebformRevisionsOverviewForm.php in modules/webform_revisions/src/Form/WebformRevisionsOverviewForm.php

File

src/ConfigEntityRevisionsOverviewFormBaseInterface.php, line 25

Namespace

Drupal\config_entity_revisions
View source
interface ConfigEntityRevisionsOverviewFormBaseInterface extends FormInterface, ContainerInjectionInterface {

  /**
   * Constructs a ConfigEntityRevisionsController object.
   *
   * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter
   *   The date formatter service.
   * @param \Drupal\Core\Render\RendererInterface $renderer
   *   The renderer service.
   * @param \Drupal\Core\Config\ImmutableConfig $config
   *   The configuration service.
   * @param \Drupal\Core\Extension\ModuleHandler $module_handler
   *   The module handler service.
   * @param \Drupal\Core\Entity\EntityTypeManager $entity_type_manager
   *   The entity type manager service.
   * @param \Drupal\diff\DiffLayoutManager $diff_layout_manager
   *   The diff layout manager service.
   * @param \Drupal\Core\Utility\LinkGenerator $link
   *   The Link generator service.
   */
  public function __construct(DateFormatterInterface $date_formatter, RendererInterface $renderer, ImmutableConfig $config, ModuleHandler $module_handler, EntityTypeManager $entity_type_manager, DiffLayoutManager $diff_layout_manager, LinkGenerator $link);

  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container);

  /**
   * Get the entity type this form handles.
   *
   * @return string
   *   The entity type.
   */
  public function getEntityType();

  /**
   * Get the route parameter that provides the entity instance.
   *
   * @return string
   *   The route parameter name.
   */
  public function getRouteParameterName();

  /**
   * Returns a unique string identifying the form.
   *
   * @return string
   *   The unique string identifying the form.
   */
  public function getFormId();

  /**
   * Generates an overview table of older revisions of a config entity.
   *
   * @param array $form
   *   A form being built.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The form state.
   * @param \Drupal\Core\Config\Entity\ConfigEntityInterface $config_entity
   *   A configuration entity.
   *
   * @return array
   *   An array as expected by \Drupal\Core\Render\RendererInterface::render().
   */
  public function buildForm(array $form, FormStateInterface $form_state, ConfigEntityInterface $config_entity = NULL);

  /**
   * {@inheritdoc}
   */
  public function validateForm(array &$form, FormStateInterface $form_state);

  /**
   * {@inheritdoc}
   */
  public function submitForm(array &$form, FormStateInterface $form_state);

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigEntityRevisionsOverviewFormBaseInterface::buildForm public function Generates an overview table of older revisions of a config entity. Overrides FormInterface::buildForm
ConfigEntityRevisionsOverviewFormBaseInterface::create public static function Instantiates a new instance of this class. Overrides ContainerInjectionInterface::create
ConfigEntityRevisionsOverviewFormBaseInterface::getEntityType public function Get the entity type this form handles. 2
ConfigEntityRevisionsOverviewFormBaseInterface::getFormId public function Returns a unique string identifying the form. Overrides FormInterface::getFormId
ConfigEntityRevisionsOverviewFormBaseInterface::getRouteParameterName public function Get the route parameter that provides the entity instance. 2
ConfigEntityRevisionsOverviewFormBaseInterface::submitForm public function Form submission handler. Overrides FormInterface::submitForm
ConfigEntityRevisionsOverviewFormBaseInterface::validateForm public function Form validation handler. Overrides FormInterface::validateForm
ConfigEntityRevisionsOverviewFormBaseInterface::__construct public function Constructs a ConfigEntityRevisionsController object. 1