interface FormatterInterface in Blazy 7
Defines re-usable formatter methods for blazy plugins.
Hierarchy
- interface \Drupal\blazy\Plugin\Field\FieldFormatter\FormatterInterface
Expanded class hierarchy of FormatterInterface
All classes that implement FormatterInterface
File
- src/
Plugin/ Field/ FieldFormatter/ FormatterInterface.php, line 8
Namespace
Drupal\blazy\Plugin\Field\FieldFormatterView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FormatterInterface:: |
public static | function | Returns default settings. | 1 |
FormatterInterface:: |
public | function | Returns required form elements for the current formatter. | 1 |
FormatterInterface:: |
public | function | Implements hook_field_formatter_settings_form(). | 1 |
FormatterInterface:: |
public | function | Implements hook_field_formatter_settings_summary(). | 1 |
FormatterInterface:: |
public | function | Implements hook_field_formatter_view(). | 1 |