Plugin implementation of the 'link' formatter.
@FieldFormatter(
id = "link",
module = "link",
label = @Translation("Link"),
field_types = {
"link"
},
settings = {
"trim_length" = "80",
"url_only" = "",
"url_plain" = "",
"rel" = "",
"target" = ""
}
)
Expanded class hierarchy of LinkFormatter
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FormatterBase:: |
protected | property | The field definition. | |
FormatterBase:: |
protected | property | The field instance definition. | |
FormatterBase:: |
protected | property | The label display setting. | |
FormatterBase:: |
protected | property |
The formatter settings. Overrides PluginSettingsBase:: |
|
FormatterBase:: |
protected | property | The view mode. | |
FormatterBase:: |
public | function |
Builds a renderable array for one field on one entity instance. Overrides FormatterInterface:: |
|
FormatterBase:: |
public | function |
Constructs a FormatterBase object. Overrides PluginBase:: |
|
LinkFormatter:: |
public | function |
Allows formatters to load information for field values being displayed. Overrides FormatterBase:: |
|
LinkFormatter:: |
public | function |
Returns a form to configure settings for the formatter. Overrides FormatterBase:: |
|
LinkFormatter:: |
public | function |
Returns a short summary for the current formatter settings. Overrides FormatterBase:: |
|
LinkFormatter:: |
public | function |
Builds a renderable array for a field value. Overrides FormatterInterface:: |
1 |
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
public | function |
Returns the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function |
Returns the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginSettingsBase:: |
protected | property | Whether default settings have been merged into the current $settings. | |
PluginSettingsBase:: |
public | function |
Implements Drupal\field\Plugin\PluginSettingsInterface::getDefaultSettings(). Overrides PluginSettingsInterface:: |
|
PluginSettingsBase:: |
public | function |
Implements Drupal\field\Plugin\PluginSettingsInterface::getSetting(). Overrides PluginSettingsInterface:: |
|
PluginSettingsBase:: |
public | function |
Implements Drupal\field\Plugin\PluginSettingsInterface::getSettings(). Overrides PluginSettingsInterface:: |
|
PluginSettingsBase:: |
protected | function | Merges default settings values into $settings. | |
PluginSettingsBase:: |
public | function |
Implements Drupal\field\Plugin\PluginSettingsInterface::setSetting(). Overrides PluginSettingsInterface:: |
|
PluginSettingsBase:: |
public | function |
Implements Drupal\field\Plugin\PluginSettingsInterface::setSettings(). Overrides PluginSettingsInterface:: |