function EditorFileReference::create

Same name in other branches
  1. 9 core/modules/editor/src/Plugin/Filter/EditorFileReference.php \Drupal\editor\Plugin\Filter\EditorFileReference::create()
  2. 8.9.x core/modules/editor/src/Plugin/Filter/EditorFileReference.php \Drupal\editor\Plugin\Filter\EditorFileReference::create()
  3. 11.x core/modules/editor/src/Plugin/Filter/EditorFileReference.php \Drupal\editor\Plugin\Filter\EditorFileReference::create()

Overrides ContainerFactoryPluginInterface::create

File

core/modules/editor/src/Plugin/Filter/EditorFileReference.php, line 67

Class

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

Namespace

Drupal\editor\Plugin\Filter

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('entity.repository'), $container->get('image.factory'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.