public static function JuiceboxConfFieldContextualLinks::create in Juicebox HTML5 Responsive Image Galleries 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/Derivative/JuiceboxConfFieldContextualLinks.php \Drupal\juicebox\Plugin\Derivative\JuiceboxConfFieldContextualLinks::create()
Creates a new class instance.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.
string $base_plugin_id: The base plugin ID for the plugin ID.
Return value
static Returns an instance of this fetcher.
Overrides ContainerDeriverInterface::create
File
- src/
Plugin/ Derivative/ JuiceboxConfFieldContextualLinks.php, line 42
Class
- JuiceboxConfFieldContextualLinks
- Provides dynamic contextual links for Juicebox field conf editing.
Namespace
Drupal\juicebox\Plugin\DerivativeCode
public static function create(ContainerInterface $container, $base_plugin_id) {
// Create a new instance of the deriver. This also allows us to extract
// services from the container and inject them into our deriver via its own
// constructor as needed.
return new static($container
->get('entity_type.manager'), $container
->get('string_translation'));
}