DependentPluginDefinitionInterface.php

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Core/Plugin/Definition/DependentPluginDefinitionInterface.php
  2. 10 core/lib/Drupal/Core/Plugin/Definition/DependentPluginDefinitionInterface.php
  3. 11.x core/lib/Drupal/Core/Plugin/Definition/DependentPluginDefinitionInterface.php

Namespace

Drupal\Core\Plugin\Definition

File

core/lib/Drupal/Core/Plugin/Definition/DependentPluginDefinitionInterface.php

View source
<?php

namespace Drupal\Core\Plugin\Definition;


/**
 * Provides an interface for a plugin definition that has dependencies.
 */
interface DependentPluginDefinitionInterface {
    
    /**
     * Gets the config dependencies of this plugin definition.
     *
     * @return array
     *   An array of config dependencies.
     *
     * @see \Drupal\Core\Plugin\PluginDependencyTrait::calculatePluginDependencies()
     */
    public function getConfigDependencies();
    
    /**
     * Sets the config dependencies of this plugin definition.
     *
     * @param array $config_dependencies
     *   An array of config dependencies.
     *
     * @return $this
     */
    public function setConfigDependencies(array $config_dependencies);

}

Interfaces

Title Deprecated Summary
DependentPluginDefinitionInterface Provides an interface for a plugin definition that has dependencies.

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