You are here

ExtraFieldPlusDisplayInterface.php in Extra Field Settings Provider 8

Same filename and directory in other branches
  1. 8.2 src/Plugin/ExtraFieldPlusDisplayInterface.php

File

src/Plugin/ExtraFieldPlusDisplayInterface.php
View source
<?php

namespace Drupal\extra_field_plus\Plugin;

use Drupal\extra_field\Plugin\ExtraFieldDisplayInterface;

/**
 * Defines an interface for Extra Field Plus Display plugins.
 */
interface ExtraFieldPlusDisplayInterface extends ExtraFieldDisplayInterface {

  /**
   * Returns field settings.
   *
   * @return array
   *   The field settings.
   */
  public function getSettings();

  /**
   * Returns field setting.
   *
   * @param string $name
   *   Setting name.
   *
   * @return mixed|null
   *   The field setting or NULL if does not exist.
   */
  public function getSetting($name);

  /**
   * Returns field settings form.
   *
   * @return array
   *   The field settings form.
   *   Example: [key_1 => [...], key_2 => [...], ...].
   */
  public function getSettingsForm();

  /**
   * Returns field settings form default values.
   *
   * @return array
   *   The form values.
   *   Example: [key_1 => value_1, key_2 => value_2,...].
   */
  public function getDefaultFormValues();

}

Interfaces

Namesort descending Description
ExtraFieldPlusDisplayInterface Defines an interface for Extra Field Plus Display plugins.