Drupal 8  8.0.2
EditorFileReference Class Reference
Inheritance diagram for EditorFileReference:

Public Member Functions

 __construct (array $configuration, $plugin_id, $plugin_definition, EntityManagerInterface $entity_manager)
 
 process ($text, $langcode)
 
- Public Member Functions inherited from FilterBase
 __construct (array $configuration, $plugin_id, $plugin_definition)
 
 setConfiguration (array $configuration)
 
 getConfiguration ()
 
 defaultConfiguration ()
 
 calculateDependencies ()
 
 getType ()
 
 getLabel ()
 
 getDescription ()
 
 settingsForm (array $form, FormStateInterface $form_state)
 
 prepare ($text, $langcode)
 
 getHTMLRestrictions ()
 
 tips ($long=FALSE)
 
- Public Member Functions inherited from PluginInspectionInterface
 getPluginId ()
 
 getPluginDefinition ()
 

Static Public Member Functions

static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
 

Protected Attributes

 $entityManager
 
- Protected Attributes inherited from FilterBase
 $plugin_id
 
 $collection
 

Additional Inherited Members

- Data Fields inherited from FilterBase
 $provider
 
 $status = FALSE
 
 $weight = 0
 
 $settings = array()
 
- Data Fields inherited from FilterInterface
const TYPE_MARKUP_LANGUAGE = 0
 
const TYPE_HTML_RESTRICTOR = 1
 
const TYPE_TRANSFORM_REVERSIBLE = 2
 
const TYPE_TRANSFORM_IRREVERSIBLE = 3
 

Detailed Description

Provides a filter to track images uploaded via a Text Editor.

Passes the text unchanged, but associates the cache tags of referenced files.

( id = "editor_file_reference", title = ("Track images uploaded via a Text Editor"), description = ("Ensures that the latest versions of images uploaded via a Text Editor are displayed."), type = Drupal::TYPE_TRANSFORM_REVERSIBLE )

Constructor & Destructor Documentation

__construct ( array  $configuration,
  $plugin_id,
  $plugin_definition,
EntityManagerInterface  $entity_manager 
)

Constructs a object.

Parameters
array$configurationA configuration array containing information about the plugin instance.
string$plugin_idThe plugin_id for the plugin instance.
mixed$plugin_definitionThe plugin implementation definition.
\Drupal\Core\Entity\EntityManagerInterface$entity_managerAn entity manager object.

References Drupal\entityManager().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container,
array  $configuration,
  $plugin_id,
  $plugin_definition 
)
static

{Creates an instance of the plugin.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe container to pull out services used in the plugin.
array$configurationA configuration array containing information about the plugin instance.
string$plugin_idThe plugin ID for the plugin instance.
mixed$plugin_definitionThe plugin implementation definition.
Returns
static Returns an instance of this plugin.
}

Implements ContainerFactoryPluginInterface.

process (   $text,
  $langcode 
)

{Performs the filter processing.

Parameters
string$textThe text string to be filtered.
string$langcodeThe language code of the text to be filtered.
Returns
The filtered text, wrapped in a FilterProcessResult object, and possibly with associated assets, cacheability metadata and placeholders.
See Also
}

Implements FilterInterface.

References Drupal\entityManager(), and Html\load().

Here is the call graph for this function:


The documentation for this class was generated from the following file: