BubbleableMetadata

Value object used for bubbleable rendering metadata. Hierarchy class \Drupal\Core\Cache\CacheableMetadata implements RefinableCacheableDependencyInterface uses RefinableCacheableDependencyTraitclass \Drupal\Core\Render\BubbleableMetadata implements AttachmentsInterface uses AttachmentsTrait See also \Drupal\Core\Render\RendererInterface::render() File core/lib/Drupal/Core/Render/BubbleableMetadata.php, line 13 Namespace Drupal\Core\Render Members Name Modifiers Type Descriptio

ContentEntityType

Defines a content entity type annotation object. Content Entity type plugins use an object-based annotation method, rather than an array-type annotation method (as commonly used on other annotation types). The annotation properties of content entity types are found on \Drupal\Core\Entity\ContentEntityType and are accessed using get/set methods defined in \Drupal\Core\Entity\ContentEntityTypeInterface. Hierarchy class \Drupal\Component\Annotation\Plugin implements AnnotationInterfaceclass \Drupa

install.inc

API functions for installing modules and themes. File core/includes/install.inc Functions Name Description db_installer_object Returns a database installer object. drupal_check_module Checks a module's requirements. drupal_check_profile Checks an installation profile's requirements. drupal_current_script_url Returns the URL of the current script, with modified query parameters. drupal_detect_database_types Detects all supported databases that are compiled into PHP. d

UpdateManagerUpdate::getFormId

public UpdateManagerUpdate::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/update/src/Form/UpdateManagerUpdate.php, line 47 Class UpdateManagerUpdate Configure update settings for this site. Namespace Drupal\update\Form Code public function getFormId() { return 'update_manager_update_form'; }

BlockContentViewsData

Provides the views data for the block_content entity type. Hierarchy class \Drupal\views\EntityViewsData implements EntityHandlerInterface, EntityViewsDataInterface uses StringTranslationTraitclass \Drupal\block_content\BlockContentViewsData File core/modules/block_content/src/BlockContentViewsData.php, line 10 Namespace Drupal\block_content Members Name Modifiers Type Description BlockContentViewsData::getViewsData public function Returns views data for the entity type

node_type_get_names

node_type_get_names() Returns a list of available node type names. This list can include types that are queued for addition or deletion. Return value string[] An array of node type labels, keyed by the node type name. File core/modules/node/node.module, line 259 The core module that allows content to be submitted to the site. Code function node_type_get_names() { return array_map(function($bundle_info) { return $bundle_info['label']; }, \Drupal::entityManager()->getBundleInfo('nod

FieldItemList::getLangcode

public FieldItemList::getLangcode() Gets the langcode of the field values held in the object. Return value string The langcode. Overrides FieldItemListInterface::getLangcode File core/lib/Drupal/Core/Field/FieldItemList.php, line 62 Class FieldItemList Represents an entity field; that is, a list of field item objects. Namespace Drupal\Core\Field Code public function getLangcode() { return $this->langcode; }

CommentForm::buildEntity

public CommentForm::buildEntity(array $form, FormStateInterface $form_state) Builds an updated entity object based upon the submitted form values. For building the updated entity object the form's entity is cloned and the submitted form values are copied to entity properties. The form's entity remains unchanged. Parameters array $form: A nested array form elements comprising the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value \Drupal\Core\En

ModerationStateTransitionInterface

Provides an interface for defining Moderation state transition entities. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\content_moderation\ModerationStateTransitionInterface File core/modules/content_moderation/src/ModerationStateTransitionInterface.php, line 10 Namespace Drupal\content_moderation Members Name Modifiers Type Desc

EntityViewBuilder::buildMultiple

public EntityViewBuilder::buildMultiple(array $build_list) Builds multiple entities' views; augments entity defaults. This function is assigned as a #pre_render callback in ::viewMultiple(). By delaying the building of an entity until the #pre_render processing in drupal_render(), the processing cost of assembling an entity's renderable array is saved on cache-hit requests. Parameters array $build_list: A renderable array containing build information and context for an entity view. Return valu