You are here

ConfigEntityRevisionFieldsInterface.php in Config Entity Revisions 8.2

File

src/ConfigEntityRevisionFieldsInterface.php
View source
<?php

namespace Drupal\config_entity_revisions;

use Drupal\Core\Form\FormInterface;

/**
 * Interface ConfigEntityRevisionFieldsInterface.
 *
 * @package Drupal\config_entity_revisions
 */
interface ConfigEntityRevisionFieldsInterface {

  /**
   * Should new revisions created by default?
   *
   * @return bool
   *   No new revision by default.
   */
  public static function getNewRevisionDefault();

  /**
   * Adds the revision form fields to the form.
   *
   * @param \Drupal\Core\Form\FormInterface &$form
   *   The form to which the fields should be added.
   */
  public static function addRevisionFormFields(FormInterface &$form);

}

Interfaces

Namesort descending Description
ConfigEntityRevisionFieldsInterface Interface ConfigEntityRevisionFieldsInterface.