hook_quickedit_render_field

hook_quickedit_render_field(Drupal\Core\Entity\EntityInterface $entity, $field_name, $view_mode_id, $langcode) Returns a renderable array for the value of a single field in an entity. To integrate with in-place field editing when a non-standard render pipeline is used (FieldItemListInterface::view() is not sufficient to render back the field following in-place editing in the exact way it was displayed originally), implement this hook. Edit module integrates with HTML elements with data-edit-fie

hook_quickedit_editor_alter

hook_quickedit_editor_alter(&$editors) Allow modules to alter in-place editor plugin metadata. This hook is called after the in-place editor plugins have been discovered, but before they are cached. Hence any alterations will be cached. Parameters array &$editors: An array of metadata on existing in-place editors, as collected by the annotation discovery mechanism. See also \Drupal\quickedit\Annotation\InPlaceEditor \Drupal\quickedit\Plugin\EditorManager Related topics Hooks Define fu

hook_queue_info_alter

hook_queue_info_alter(&$queues) Alter cron queue information before cron runs. Called by \Drupal\Core\Cron to allow modules to alter cron queue settings before any jobs are processesed. Parameters array $queues: An array of cron queue information. See also \Drupal\Core\QueueWorker\QueueWorkerInterface \Drupal\Core\Annotation\QueueWorker \Drupal\Core\Cron Related topics Hooks Define functions that alter the behavior of Drupal core. File core/core.api.php, line 1955 Documentation landing

hook_query_TAG_alter

hook_query_TAG_alter(Drupal\Core\Database\Query\AlterableInterface $query) Perform alterations to a structured query for a given tag. Parameters $query: An Query object describing the composite parts of a SQL query. See also hook_query_alter() node_query_node_access_alter() AlterableInterface SelectInterface Related topics Database abstraction layer Allow the use of different database servers using the same code base. Hooks Define functions that alter the behavior of Drupal core. File core/

hook_query_alter

hook_query_alter(Drupal\Core\Database\Query\AlterableInterface $query) Perform alterations to a structured query. Structured (aka dynamic) queries that have tags associated may be altered by any module before the query is executed. Parameters $query: A Query object describing the composite parts of a SQL query. See also hook_query_TAG_alter() node_query_node_access_alter() AlterableInterface SelectInterface Related topics Database abstraction layer Allow the use of different database servers

hook_preprocess_HOOK

hook_preprocess_HOOK(&$variables) Preprocess theme variables for a specific theme hook. This hook allows modules to preprocess theme variables for a specific theme hook. It should only be used if a module needs to override or add to the theme preprocessing for a theme hook it didn't define. For more detailed information, see the Theme system overview topic. Parameters $variables: The variables array (modify in place). Related topics Hooks Define functions that alter the behavior of Drupal

hook_preprocess

hook_preprocess(&$variables, $hook) Preprocess theme variables for templates. This hook allows modules to preprocess theme variables for theme templates. It is called for all theme hooks implemented as templates, but not for theme hooks implemented as functions. hook_preprocess_HOOK() can be used to preprocess variables for a specific theme hook, whether implemented as a template or function. For more detailed information, see the Theme system overview topic. Parameters $variables: The var

hook_post_update_NAME

hook_post_update_NAME(&$sandbox) Executes an update which is intended to update data, like entities. These implementations have to be placed in a MODULE.post_update.php file. These updates are executed after all hook_update_N() implementations. At this stage Drupal is already fully repaired so you can use any API as you wish. NAME can be arbitrary machine names. In contrast to hook_update_N() the order of functions in the file is the only thing which ensures the execution order of those fun

hook_path_update

hook_path_update($path) Respond to a path being updated. Parameters array $path: The array structure is identical to that of the return value of \Drupal\Core\Path\PathInterface::save(). See also \Drupal\Core\Path\PathInterface::save() Related topics Hooks Define functions that alter the behavior of Drupal core. File core/modules/path/path.api.php, line 40 Hooks provided by the Path module. Code function hook_path_update($path) { if ($path['alias'] != $path['original']['alias']) { db

hook_path_insert

hook_path_insert($path) Respond to a path being inserted. Parameters array $path: The array structure is identical to that of the return value of \Drupal\Core\Path\PathInterface::save(). See also \Drupal\Core\Path\PathInterface::save() Related topics Hooks Define functions that alter the behavior of Drupal core. File core/modules/path/path.api.php, line 22 Hooks provided by the Path module. Code function hook_path_insert($path) { db_insert('mytable') ->fields(array( 'alias'