BundleEntityFormBase::protectBundleIdElement

protected BundleEntityFormBase::protectBundleIdElement(array $form) Protects the bundle entity's ID property's form element against changes. This method is assumed to be called on a completely built entity form, including a form element for the bundle config entity's ID property. Parameters array $form: The completely built entity bundle form array. Return value array The updated entity bundle form array. File core/lib/Drupal/Core/Entity/BundleEntityFormBase.php, line 22 Class BundleEntit

BundleEntityFormBase

Class BundleEntityFormBase is a base form for bundle config entities. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\BundleEntityFormBase File core/lib/Drupal/Core/Entity/BundleEntityFormBase.php, line 8 Na

BundleConfigImportValidate::__construct

public BundleConfigImportValidate::__construct(ConfigManagerInterface $config_manager, EntityManagerInterface $entity_manager) Constructs the event subscriber. Parameters \Drupal\Core\Config\ConfigManagerInterface $config_manager: The config manager \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. File core/lib/Drupal/Core/Entity/Event/BundleConfigImportValidate.php, line 38 Class BundleConfigImportValidate Entity config importer validation event subscriber.

BundleConfigImportValidate::onConfigImporterValidate

public BundleConfigImportValidate::onConfigImporterValidate(ConfigImporterEvent $event) Ensures bundles that will be deleted are not in use. Parameters \Drupal\Core\Config\ConfigImporterEvent $event: The config import event. Overrides ConfigImportValidateEventSubscriberBase::onConfigImporterValidate File core/lib/Drupal/Core/Entity/Event/BundleConfigImportValidate.php, line 49 Class BundleConfigImportValidate Entity config importer validation event subscriber. Namespace Drupal\Core\Ent

BundleConfigImportValidate::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/lib/Drupal/Core/Entity/Event/BundleConfigImportValidate.php, line 28 Class BundleConfigImportValidate Entity config importer validation event subscriber. Namespace Drupal\Core\Entity\Event Code protected $entityManager;

BundleConfigImportValidate::$configManager

The config manager. Type: \Drupal\Core\Config\ConfigManagerInterface File core/lib/Drupal/Core/Entity/Event/BundleConfigImportValidate.php, line 21 Class BundleConfigImportValidate Entity config importer validation event subscriber. Namespace Drupal\Core\Entity\Event Code protected $configManager;

BundleConfigImportValidate

Entity config importer validation event subscriber. Hierarchy class \Drupal\Core\Config\ConfigImportValidateEventSubscriberBase implements EventSubscriberInterface uses StringTranslationTraitclass \Drupal\Core\Entity\Event\BundleConfigImportValidate File core/lib/Drupal/Core/Entity/Event/BundleConfigImportValidate.php, line 14 Namespace Drupal\Core\Entity\Event Members Name Modifiers Type Description BundleConfigImportValidate::$configManager protected property The conf

BubbleableMetadata::mergeAttachments

public static BubbleableMetadata::mergeAttachments(array $a, array $b) Merges two attachments arrays (which live under the '#attached' key). The values under the 'drupalSettings' key are merged in a special way, to match the behavior of: jQuery.extend(true, {}, $settings_items[0], $settings_items[1], ...) This means integer indices are preserved just like string indices are, rather than re-indexed as is common in PHP array merging. Example: function module1_page_attachments(&$page) {

BubbleableMetadata::merge

public BubbleableMetadata::merge(CacheableMetadata $other) Merges the values of another bubbleable metadata object with this one. Parameters \Drupal\Core\Cache\CacheableMetadata $other: The other bubbleable metadata object. Return value static A new bubbleable metadata object, with the merged data. Overrides CacheableMetadata::merge File core/lib/Drupal/Core/Render/BubbleableMetadata.php, line 26 Class BubbleableMetadata Value object used for bubbleable rendering metadata. Namespace D

BubbleableMetadata::createFromRenderArray

public static BubbleableMetadata::createFromRenderArray(array $build) Creates a bubbleable metadata object with values taken from a render array. Parameters array $build: A render array. Return value static Overrides CacheableMetadata::createFromRenderArray File core/lib/Drupal/Core/Render/BubbleableMetadata.php, line 65 Class BubbleableMetadata Value object used for bubbleable rendering metadata. Namespace Drupal\Core\Render Code public static function createFromRenderArray(array $b