You are here

interface FeaturesAssignmentMethodInterface in Features 8.3

Same name and namespace in other branches
  1. 8.4 src/FeaturesAssignmentMethodInterface.php \Drupal\features\FeaturesAssignmentMethodInterface

Interface for package assignment classes.

Hierarchy

Expanded class hierarchy of FeaturesAssignmentMethodInterface

All classes that implement FeaturesAssignmentMethodInterface

File

src/FeaturesAssignmentMethodInterface.php, line 12

Namespace

Drupal\features
View source
interface FeaturesAssignmentMethodInterface extends PluginInspectionInterface {

  /**
   * Injects the features manager.
   *
   * @param \Drupal\features\FeaturesManagerInterface $features_manager
   *   The features manager to be used to retrieve the configuration list and
   *   the already assigned packages.
   */
  public function setFeaturesManager(FeaturesManagerInterface $features_manager);

  /**
   * Injects the features assigner.
   *
   * @param \Drupal\features\FeaturesAssignerInterface $assigner
   *   The features assigner to be used to retrieve the bundle configuration.
   */
  public function setAssigner(FeaturesAssignerInterface $assigner);

  /**
   * Injects the entity manager.
   *
   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
   *   The entity type manager to be used to retrieve entity information.
   */
  public function setEntityTypeManager(EntityTypeManagerInterface $entity_type_manager);

  /**
   * Injects the configuration factory.
   *
   * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
   *   The configuration factory to be used to retrieve configuration values.
   */
  public function setConfigFactory(ConfigFactoryInterface $config_factory);

  /**
   * Performs package assignment.
   *
   * @param bool $force
   *   (optional) If TRUE, assign config regardless of restrictions such as it
   *   being already assigned to a package.
   */
  public function assignPackages($force = FALSE);

}

Members

Namesort descending Modifiers Type Description Overrides
FeaturesAssignmentMethodInterface::assignPackages public function Performs package assignment. 12
FeaturesAssignmentMethodInterface::setAssigner public function Injects the features assigner. 1
FeaturesAssignmentMethodInterface::setConfigFactory public function Injects the configuration factory. 1
FeaturesAssignmentMethodInterface::setEntityTypeManager public function Injects the entity manager. 1
FeaturesAssignmentMethodInterface::setFeaturesManager public function Injects the features manager.
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2