_field_create_entity_from_ids

_field_create_entity_from_ids($ids) Assembles a partial entity structure with initial IDs. Parameters object $ids: An object with the properties entity_type (required), entity_id (required), revision_id (optional) and bundle (optional). Return value \Drupal\Core\Entity\EntityInterface An entity, initialized with the provided IDs. File core/modules/field/field.module, line 285 Attach custom data fields to Drupal entities. Code function _field_create_entity_from_ids($ids) { $id_properties =

_editor_record_file_usage

_editor_record_file_usage(array $uuids, EntityInterface $entity) Records file usage of files referenced by formatted text fields. Every referenced file that does not yet have the FILE_STATUS_PERMANENT state, will be given that state. Parameters array $uuids: An array of file entity UUIDs. EntityInterface $entity: An entity whose fields to inspect for file references. File core/modules/editor/editor.module, line 437 Adds bindings for client-side "text editors" to text formats. Code function _

_filter_autop

_filter_autop($text) Converts line breaks into <p> and <br> in an intelligent fashion. Based on: http://photomatt.net/scripts/autop Related topics Standard filters Filters implemented by the Filter module. File core/modules/filter/filter.module, line 693 Framework for handling the filtering of content. Code function _filter_autop($text) { // All block level tags $block = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|ma

_editor_get_file_uuids_by_field

_editor_get_file_uuids_by_field(EntityInterface $entity) Finds all files referenced (data-entity-uuid) by formatted text fields. Parameters EntityInterface $entity: An entity whose fields to analyze. Return value array An array of file entity UUIDs. File core/modules/editor/editor.module, line 551 Adds bindings for client-side "text editors" to text formats. Code function _editor_get_file_uuids_by_field(EntityInterface $entity) { $uuids = array(); $formatted_text_fields = _editor_get_f

_drupal_shutdown_function

_drupal_shutdown_function() Executes registered shutdown functions. File core/includes/bootstrap.inc, line 978 Functions that need to be loaded on every Drupal request. Code function _drupal_shutdown_function() { $callbacks = &drupal_register_shutdown_function(); // Set the CWD to DRUPAL_ROOT as it is not guaranteed to be the same as it // was in the normal context of execution. chdir(DRUPAL_ROOT); try { while (list($key, $callback) = each($callbacks)) { call_user_fu

_drupal_shutdown_function_handle_exception

_drupal_shutdown_function_handle_exception($exception) Displays and logs any errors that may happen during shutdown. Parameters \Exception|\Throwable $exception: The exception object that was thrown. See also _drupal_shutdown_function() File core/includes/bootstrap.inc, line 1009 Functions that need to be loaded on every Drupal request. Code function _drupal_shutdown_function_handle_exception($exception) { // If using PHP-FPM then fastcgi_finish_request() will have been fired // prevent

_editor_delete_file_usage

_editor_delete_file_usage(array $uuids, EntityInterface $entity, $count) Deletes file usage of files referenced by formatted text fields. Parameters array $uuids: An array of file entity UUIDs. EntityInterface $entity: An entity whose fields to inspect for file references. $count: The number of references to delete. Should be 1 when deleting a single revision and 0 when deleting an entity entirely. See also \Drupal\file\FileUsage\FileUsageInterface::delete() File core/modules/editor/editor.mo

_editor_get_formatted_text_fields

_editor_get_formatted_text_fields(FieldableEntityInterface $entity) Determines the formatted text fields on an entity. Parameters \Drupal\Core\Entity\FieldableEntityInterface $entity: An entity whose fields to analyze. Return value array The names of the fields on this entity that support formatted text. File core/modules/editor/editor.module, line 578 Adds bindings for client-side "text editors" to text formats. Code function _editor_get_formatted_text_fields(FieldableEntityInterface $enti

_drupal_schema_initialize

_drupal_schema_initialize(&$schema, $module, $remove_descriptions = TRUE) Fills in required default values for table definitions from hook_schema(). Parameters array $schema: The schema definition array as it was returned by the module's hook_schema(). string $module: The module for which hook_schema() was invoked. bool $remove_descriptions: (optional) Whether to additionally remove 'description' keys of all tables and fields to improve performance of serialize() and unserialize(). Default

_drupal_rewrite_settings_dump

_drupal_rewrite_settings_dump($variable, $variable_name) Helper for drupal_rewrite_settings(). Dump the relevant value properties. Parameters array|object $variable: The container for variable values. string $variable_name: Name of variable. Return value string A string containing valid PHP code of the variable suitable for placing into settings.php. File core/includes/install.inc, line 438 API functions for installing modules and themes. Code function _drupal_rewrite_settings_dump($variabl