Verified Commit c186e85a authored by quietone's avatar quietone
Browse files

Issue #3453692 by nhojivar7, agunjan085, joachim, isa.bel, xdequinze:...

Issue #3453692 by nhojivar7, agunjan085, joachim, isa.bel, xdequinze: hook_entity_reference_selection_alter() is undocumented
parent 48456423
Loading
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -2396,6 +2396,22 @@ function hook_entity_query_tag__ENTITY_TYPE__TAG_alter(\Drupal\Core\Entity\Query
  $query->condition('id', '1', '<>');
}

/**
 * Modify the list of available entity reference plugins.
 *
 * This hook may be used to modify plugin properties after they have been
 * specified by other modules.
 *
 * @param array $plugins
 *   An array of all the existing plugin definitions, passed by reference.
 *
 * @see \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManager
 */
function hook_entity_reference_selection_alter(array &$plugins): void {
  // Remove a plugin.
  unset($plugins['broken']);
}

/**
 * @} End of "addtogroup hooks".
 */