Loading core/lib/Drupal/Core/Entity/entity.api.php +16 −0 Original line number Diff line number Diff line Loading @@ -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". */ Loading
core/lib/Drupal/Core/Entity/entity.api.php +16 −0 Original line number Diff line number Diff line Loading @@ -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". */