shortcut_set_unassign_user

shortcut_set_unassign_user($account) Unassigns a user from any shortcut set they may have been assigned to. The user will go back to using whatever default set applies. Parameters $account: A user account that will be removed from the shortcut set assignment. Return value TRUE if the user was previously assigned to a shortcut set and has been successfully removed from it. FALSE if the user was already not assigned to any set. Deprecated in Drupal 8.x, will be removed before Drupal 9.0. Use

ConfigNamesMapper::$baseRoute

The base route object that the mapper is attached to. File core/modules/config_translation/src/ConfigNamesMapper.php, line 66 Class ConfigNamesMapper Configuration mapper base implementation. Namespace Drupal\config_translation Code protected $baseRoute;

Role::$weight

The weight of this role in administrative listings. Type: int File core/modules/user/src/Entity/Role.php, line 68 Class Role Defines the user role entity class. Namespace Drupal\user\Entity Code protected $weight;

EntityController::$entityTypeManager

The entity manager. Type: \Drupal\Core\Entity\EntityTypeManagerInterface File core/lib/Drupal/Core/Entity/Controller/EntityController.php, line 41 Class EntityController Provides the add-page and title callbacks for entities. Namespace Drupal\Core\Entity\Controller Code protected $entityTypeManager;

file_managed_file_submit

file_managed_file_submit($form, FormStateInterface $form_state) Form submission handler for upload / remove buttons of managed_file elements. See also \Drupal\file\Element\ManagedFile::processManagedFile() File core/modules/file/file.module, line 1102 Defines a "managed_file" Form API field and a "file" field for Field module. Code function file_managed_file_submit($form, FormStateInterface $form_state) { // Determine whether it was the upload or the remove button that was clicked, // an

ContentEntityBase::getUntranslated

public ContentEntityBase::getUntranslated() Returns the translatable object referring to the original language. Return value $this The translation object referring to the original language. Overrides TranslatableInterface::getUntranslated File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 754 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function getUntranslated() { return $this->g

drupal_install_fix_file

drupal_install_fix_file($file, $mask, $message = TRUE) Attempts to fix file permissions. The general approach here is that, because we do not know the security setup of the webserver, we apply our permission changes to all three digits of the file permission (i.e. user, group and all). To ensure that the values behave as expected (and numbers don't carry from one digit to the next) we do the calculation on the octal value using bitwise operations. This lets us remove, for example, 0222 from 070

ConfigSingleImportForm::submitForm

public ConfigSingleImportForm::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/ConfigSingleImportForm.php, line 384 Class ConfigSingleImportForm Provides a form for importing a single configuration file. Namespace Drup

node_access_view_all_nodes

node_access_view_all_nodes($account = NULL) Determines whether the user has a global viewing grant for all nodes. Checks to see whether any module grants global 'view' access to a user account; global 'view' access is encoded in the {node_access} table as a grant with nid=0. If no node access modules are enabled, node.module defines such a global 'view' access grant. This function is called when a node listing query is tagged with 'node_access'; when this function returns TRUE, no node access j

FieldStorageConfig::getName

public FieldStorageConfig::getName() Returns the machine name of the field. This defines how the field data is accessed from the entity. For example, if the field name is "foo", then $entity->foo returns its data. Return value string The field name. Overrides FieldStorageDefinitionInterface::getName File core/modules/field/src/Entity/FieldStorageConfig.php, line 508 Class FieldStorageConfig Defines the Field storage configuration entity. Namespace Drupal\field\Entity Code public fu