You are here

interface FormatterInterface in Blazy 7

Defines re-usable formatter methods for blazy plugins.

Hierarchy

Expanded class hierarchy of FormatterInterface

All classes that implement FormatterInterface

File

src/Plugin/Field/FieldFormatter/FormatterInterface.php, line 8

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter
View source
interface FormatterInterface {

  /**
   * Returns required form elements for the current formatter.
   */
  public function getRequiredForms();

  /**
   * Returns default settings.
   */
  public static function defaultSettings();

  /**
   * Implements hook_field_formatter_view().
   */
  public function viewElements($items, $entity);

  /**
   * Implements hook_field_formatter_settings_form().
   */
  public function settingsForm($form, &$form_state, $definition);

  /**
   * Implements hook_field_formatter_settings_summary().
   */
  public function settingsSummary(array $definition);

}

Members

Namesort descending Modifiers Type Description Overrides
FormatterInterface::defaultSettings public static function Returns default settings. 1
FormatterInterface::getRequiredForms public function Returns required form elements for the current formatter. 1
FormatterInterface::settingsForm public function Implements hook_field_formatter_settings_form(). 1
FormatterInterface::settingsSummary public function Implements hook_field_formatter_settings_summary(). 1
FormatterInterface::viewElements public function Implements hook_field_formatter_view(). 1