ContainerDeriverInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php
  2. 10 core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php
  3. 11.x core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php

Namespace

Drupal\Core\Plugin\Discovery

File

core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php

View source
<?php

namespace Drupal\Core\Plugin\Discovery;

use Drupal\Component\Plugin\Derivative\DeriverInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * Provides additional plugin definitions based on an existing definition using
 * service injection.
 */
interface ContainerDeriverInterface extends DeriverInterface {
    
    /**
     * Creates a new class instance.
     *
     * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
     *   The container to pull out services used in the fetcher.
     * @param string $base_plugin_id
     *   The base plugin ID for the plugin ID.
     *
     * @return static
     *   Returns an instance of this fetcher.
     */
    public static function create(ContainerInterface $container, $base_plugin_id);

}

Interfaces

Title Deprecated Summary
ContainerDeriverInterface Provides additional plugin definitions based on an existing definition using service injection.

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