Provides a filter to conver line breaks to HTML.
@Filter(
id = "filter_autop",
module = "filter",
title = @Translation("Convert line breaks into HTML (i.e. <code><br></code> and <code><p></code>)"),
type = FILTER_TYPE_MARKUP_LANGUAGE
)
Expanded class hierarchy of FilterAutoP
class FilterAutoP extends FilterBase {
/**
* {@inheritdoc}
*/
public function process($text, $langcode, $cache, $cache_id) {
return _filter_autop($text);
}
/**
* {@inheritdoc}
*/
public function tips($long = FALSE) {
if ($long) {
return t('Lines and paragraphs are automatically recognized. The <br /> line break, <p> paragraph and </p> close paragraph tags are inserted automatically. If paragraphs are not recognized simply add a couple blank lines.');
}
else {
return t('Lines and paragraphs break automatically.');
}
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FilterAutoP:: |
public | function |
Performs the filter processing. Overrides FilterInterface:: |
|
FilterAutoP:: |
public | function |
Generates a filter's tip. Overrides FilterBase:: |
|
FilterBase:: |
protected | property | A collection of all filters this filter participates in. | |
FilterBase:: |
public | property | A Boolean indicating whether the text processed by this filter may be cached. | |
FilterBase:: |
public | property | The name of the module that owns this filter. | |
FilterBase:: |
protected | property | The plugin ID of this filter. | |
FilterBase:: |
public | property | An associative array containing the configured settings of this filter. | |
FilterBase:: |
public | property | A Boolean indicating whether this filter is enabled. | |
FilterBase:: |
public | property | The weight of this filter compared to others in a filter collection. | |
FilterBase:: |
public | function |
Exports the complete configuration of this filter plugin instance. Overrides FilterInterface:: |
|
FilterBase:: |
public | function |
Returns the administrative description for this filter plugin. Overrides FilterInterface:: |
|
FilterBase:: |
public | function |
Returns the administrative label for this filter plugin. Overrides FilterInterface:: |
|
FilterBase:: |
public | function |
Returns the processing type of this filter plugin. Overrides FilterInterface:: |
|
FilterBase:: |
public | function |
Prepares the text for processing. Overrides FilterInterface:: |
|
FilterBase:: |
public | function |
Sets the configuration for this filter plugin instance. Overrides FilterInterface:: |
|
FilterBase:: |
public | function |
Generates a filter's settings form. Overrides FilterInterface:: |
2 |
FilterBase:: |
public | function |
Constructs a Drupal\Component\Plugin\PluginBase object. Overrides PluginBase:: |
|
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:: |