_views_file_status

_views_file_status($choice = NULL) Formats human-readable version of file status. Parameters int|null $choice: (optional) An integer status code. If not set, all statuses are returned. Defaults to NULL. Return value \Drupal\Core\StringTranslation\TranslatableMarkup|\Drupal\Core\StringTranslation\TranslatableMarkup[] An array of file statuses or a specified status if $choice is set. File core/modules/file/file.module, line 1551 Defines a "managed_file" Form API field and a "file" field for Fie

_views_query_tag_alter_condition

_views_query_tag_alter_condition(AlterableInterface $query, &$conditions, $substitutions) Replaces the substitutions recursive foreach condition. File core/modules/views/views.module, line 676 Primarily Drupal hooks and global API functions to manipulate views. Code function _views_query_tag_alter_condition(AlterableInterface $query, &$conditions, $substitutions) { foreach ($conditions as $condition_id => &$condition) { if (is_numeric($condition_id)) { if (is_string

_user_role_permissions_update

_user_role_permissions_update($roles) Determine the permissions for one or more roles during update. A separate version is needed because during update the entity system can't be used and in non-update situations the entity system is preferred because of the hook system. Parameters array $roles: An array of role IDs. Return value array An array indexed by role ID. Each value is an array of permission strings for the given role. File core/modules/user/user.module, line 345 Enables the user reg

_user_cancel_session_regenerate

_user_cancel_session_regenerate() Implements callback_batch_finished(). Finished batch processing callback for cancelling a user account. See also user_cancel() File core/modules/user/user.module, line 776 Enables the user registration and login system. Code function _user_cancel_session_regenerate() { // Regenerate the users session instead of calling session_destroy() as we // want to preserve any messages that might have been set. \Drupal::service('session')->migrate(); }

_views_field_get_entity_type_storage

_views_field_get_entity_type_storage(FieldStorageConfigInterface $field_storage) Determines whether the entity type the field appears in is SQL based. Parameters \Drupal\field\FieldStorageConfigInterface $field_storage: The field storage definition. Return value \Drupal\Core\Entity\Sql\SqlContentEntityStorage Returns the entity type storage if supported. File core/modules/views/views.views.inc, line 232 Provide views data that isn't tied to any other module. Code function _views_field_get_e

_user_mail_notify

_user_mail_notify($op, $account, $langcode = NULL) Conditionally create and send a notification email when a certain operation happens on the given user account. Parameters string $op: The operation being performed on the account. Possible values: 'register_admin_created': Welcome message for user created by the admin. 'register_no_approval_required': Welcome message when user self-registers. 'register_pending_approval': Welcome message, user pending admin approval. 'password_reset': Passw

_user_cancel

_user_cancel($edit, $account, $method) Implements callback_batch_operation(). Last step for cancelling a user account. Since batch and session API require a valid user account, the actual cancellation of a user account needs to happen last. Parameters array $edit: An array of submitted form values. \Drupal\user\UserInterface $account: The user ID of the user account to cancel. string $method: The account cancellation method to use. See also user_cancel() File core/modules/user/user.module, li

_update_project_status_sort

_update_project_status_sort($a, $b) Orders projects based on their status. Callback for uasort() within update_requirements(). File core/modules/update/update.module, line 542 Handles updates of Drupal core and contributed projects. Code function _update_project_status_sort($a, $b) { // The status constants are numerically in the right order, so we can // usually subtract the two to compare in the order we want. However, // negative status values should be treated as if they are huge, s

_update_no_data

_update_no_data() Returns a warning message when there is no data about available updates. File core/modules/update/update.module, line 286 Handles updates of Drupal core and contributed projects. Code function _update_no_data() { $destination = \Drupal::destination()->getAsArray(); return t('No update information available. <a href=":run_cron">Run cron</a> or <a href=":check_manually">check manually</a>.', array( ':run_cron' => \Drupal::url('system.run_c

_update_requirement_check

_update_requirement_check($project, $type) Fills in the requirements array. This is shared for both core and contrib to generate the right elements in the array for hook_requirements(). Parameters $project: Array of information about the project we're testing as returned by update_calculate_project_data(). $type: What kind of project this is ('core' or 'contrib'). Return value An array to be included in the nested $requirements array. See also hook_requirements() update_requirements() update