You are here

FormatterInterface.php in Custom Formatters 8.3

File

src/FormatterInterface.php
View source
<?php

namespace Drupal\custom_formatters;

use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Interface FormatterInterface.
 */
interface FormatterInterface extends ConfigEntityInterface {

  /**
   * Return the formatter type plugin.
   *
   * @return FormatterTypeInterface|bool
   *   The formatter type plugin or FALSE if no plugin found.
   */
  public function getFormatterType();

  /**
   * Get all the dependent entities for this formatter.
   *
   * @return ConfigEntityInterface[]
   *   The dependent entities.
   */
  public function getDependentEntities();

}

Interfaces

Namesort descending Description
FormatterInterface Interface FormatterInterface.