Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AddToAllBundles.php

function AddToAllBundles::create

Overrides ContainerFactoryPluginInterface::create

File

core/modules/field/src/Plugin/ConfigAction/AddToAllBundles.php, line 40

Class

AddToAllBundles
Adds a field to all bundles of its target entity type.

Namespace

Drupal\field\Plugin\ConfigAction

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) : static {
    return new static($container->get(EntityTypeManagerInterface::class), $container->get(EntityTypeBundleInfoInterface::class), $container->get(ConfigManagerInterface::class));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal