ContentEntityNullStorage::doDeleteFieldItems

protected ContentEntityNullStorage::doDeleteFieldItems($entities) Deletes entity field values from the storage. Parameters \Drupal\Core\Entity\ContentEntityInterface[] $entities: An array of entity objects to be deleted. Overrides ContentEntityStorageBase::doDeleteFieldItems File core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php, line 94 Class ContentEntityNullStorage Defines a null entity storage. Namespace Drupal\Core\Entity Code protected function doDeleteFieldItems($entitie

update_replace_permissions

update_replace_permissions($replace) Replace permissions during update. This function can replace one permission to several or even delete an old one. Parameters array $replace: An associative array. The keys are the old permissions the values are lists of new permissions. If the list is an empty array, the old permission is removed. File core/includes/update.inc, line 671 Drupal database update API. Code function update_replace_permissions($replace) { $prefix = 'user.role.'; $cut = strl

PoDatabaseWriter::writeItem

public PoDatabaseWriter::writeItem(PoItem $item) Writes the given item. Parameters PoItem $item: One specific item to write. Overrides PoWriterInterface::writeItem File core/modules/locale/src/PoDatabaseWriter.php, line 179 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code public function writeItem(PoItem $item) { if ($item->isPlural()) { $item->setSource(implode(LOCALE_PLURAL_DELIMITER, $item->getSource()));

FormStateInterface::setValue

public FormStateInterface::setValue($key, $value) Sets the submitted form value for a specific key. Parameters string|array $key: Values are stored as a multi-dimensional associative array. If $key is a string, it will use $values[$key] = $value. If $key is an array, each element of the array will be used as a nested key. If $key = array('foo', 'bar') it will use $values['foo']['bar'] = $value. mixed $value: The value to set. Return value $this File core/lib/Drupal/Core/Form/FormStateInterfac

EntityDefinitionUpdateManagerInterface::updateEntityType

public EntityDefinitionUpdateManagerInterface::updateEntityType(EntityTypeInterface $entity_type) Applies any change performed to the passed entity type definition. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. File core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php, line 125 Class EntityDefinitionUpdateManagerInterface Defines an interface for managing entity definition updates. Namespace Drupal\Core\Entity Code publi

QueryFactory::onConfigSave

public QueryFactory::onConfigSave(ConfigCrudEvent $event) Updates configuration entity in the key store. Parameters ConfigCrudEvent $event: The configuration event. File core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php, line 225 Class QueryFactory Provides a factory for creating entity query objects for the config backend. Namespace Drupal\Core\Config\Entity\Query Code public function onConfigSave(ConfigCrudEvent $event) { $saved_config = $event->getConfig(); $entity_t

ConfigHandlerExtra::submitForm

public ConfigHandlerExtra::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 ViewsFormBase::submitForm File core/modules/views_ui/src/Form/Ajax/ConfigHandlerExtra.php, line 101 Class ConfigHandlerExtra Provides a form for configuring extra information for a Views UI item. Namespac

CommentManager

Comment manager contains common functions to manage comment fields. Hierarchy class \Drupal\comment\CommentManager implements CommentManagerInterface uses UrlGeneratorTrait, StringTranslationTrait File core/modules/comment/src/CommentManager.php, line 23 Namespace Drupal\comment Members Name Modifiers Type Description CommentManager::$authenticatedCanPostComments protected property Whether the \Drupal\user\RoleInterface::AUTHENTICATED_ID can post comments. CommentManag

SAVED_NEW

Return status for saving which involved creating a new item. File core/includes/common.inc, line 59 Common functions that many Drupal modules will need to reference. Code const SAVED_NEW = 1;

QueryBase::$alterMetaData

The query metadata for alter purposes. Type: array File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 88 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code protected $alterMetaData;