MenuTreeStorageInterface::getRootPathIds

public MenuTreeStorageInterface::getRootPathIds($id) Returns all the IDs that represent the path to the root of the tree. array( 'p1' => 1, 'p2' => 6, 'p3' => 8, 'p4' => 0, 'p5' => 0, 'p6' => 0, 'p7' => 0, 'p8' => 0, 'p9' => 0 ) Parameters string $id: A menu link ID. Return value array An associative array of IDs with keys equal to values that represents the path from the given ID to the root of the tree. If $id is an ID that

MailManager::mail

public MailManager::mail($module, $key, $to, $langcode, $params = array(), $reply = NULL, $send = TRUE) Composes and optionally sends an email message. Sending an email works with defining an email template (subject, text and possibly email headers) and the replacement values to use in the appropriate places in the template. Processed email templates are requested from hook_mail() from the module sending the email. Any module can modify the composed email message array using hook_mail_alter().

EntityTypeInfo::entityBaseFieldInfo

public EntityTypeInfo::entityBaseFieldInfo(EntityTypeInterface $entity_type) Adds base field info to an entity type. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: Entity type for adding base fields to. Return value \Drupal\Core\Field\BaseFieldDefinition[] New fields added by moderation state. File core/modules/content_moderation/src/EntityTypeInfo.php, line 288 Class EntityTypeInfo Manipulates entity type information. Namespace Drupal\content_moderation Code public

ConfigImportForm::submitForm

public ConfigImportForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/config/src/Form/ConfigImportForm.php, line 91 Class ConfigImportForm Defines the configuration import form. Namespace Drupal\config\Form Code public function su

NullStorageExpirable::setMultipleWithExpire

public NullStorageExpirable::setMultipleWithExpire(array $data, $expire) Saves an array of values with a time to live. Parameters array $data: An array of data to store. int $expire: The time to live for items, in seconds. Overrides KeyValueStoreExpirableInterface::setMultipleWithExpire File core/lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php, line 105 Class NullStorageExpirable Defines a null key/value store implementation. Namespace Drupal\Core\KeyValueStore Code public func

StorageComparerInterface::hasChanges

public StorageComparerInterface::hasChanges() Checks if there are any operations with changes to process. Until the changelist has been calculated this will always be FALSE. Return value bool TRUE if there are changes to process and FALSE if not. See also \Drupal\Core\Config\StorageComparerInterface::createChangelist() File core/lib/Drupal/Core/Config/StorageComparerInterface.php, line 75 Class StorageComparerInterface Defines an interface for comparison of configuration storage objects.

File interface

Common file handling functions. File core/includes/file.inc, line 34 API for handling file uploads and server file management. Functions Name Location Description drupal_basename Deprecated core/includes/file.inc Gets the filename from a given path. drupal_chmod Deprecated core/includes/file.inc Sets the permissions on a file or directory. drupal_dirname Deprecated core/includes/file.inc Gets the name of the directory from a given path. drupal_mkdir Deprecated core/

ViewsData

Class to manage and lazy load cached views data. If a table is requested and cannot be loaded from cache, all data is then requested from cache. A table-specific cache entry will then be created for the requested table based on this cached data. Table data is only rebuilt when no cache entry for all table data can be retrieved. Hierarchy class \Drupal\views\ViewsData File core/modules/views/src/ViewsData.php, line 20 Namespace Drupal\views Members Name Modifiers Type Description

BlockContentInterface::setTheme

public BlockContentInterface::setTheme($theme) Sets the theme value. When creating a new block content block from the block library, the user is redirected to the configure form for that block in the given theme. The theme is stored against the block when the block content add form is shown. Parameters string $theme: The theme name. Return value \Drupal\block_content\BlockContentInterface The class instance that this method is called on. File core/modules/block_content/src/BlockContentInterfa

LocaleConfigManager::__construct

public LocaleConfigManager::__construct(StorageInterface $config_storage, StringStorageInterface $locale_storage, ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config, ConfigurableLanguageManagerInterface $language_manager, LocaleDefaultConfigStorage $default_config_storage, ConfigManagerInterface $config_manager) Creates a new typed configuration manager. Parameters \Drupal\Core\Config\StorageInterface $config_storage: The storage object to use for reading configu