Resolve #3408698 "Provide alter for"
1 unresolved thread
Closes #3408698
Merge request reports
Activity
added 1 commit
- 5b5b1e76 - Add hook_field_ui_field_type_ui_definitions_alter
- Resolved by Lauri Timmanee
added 1 commit
- 0a974bc4 - Use $this->entityTypeId as the entity type id
- Resolved by Lauri Timmanee
- Resolved by Lauri Timmanee
added 1 commit
- 183870b4 - Provide API for entity type specific field types
113 113 */ 114 114 public function getUiDefinitions(); 115 115 116 /** 117 * Get the field type definitions that can be added via UI for an entity type. 118 * 119 * @param string $entity_type_id 120 * The entity type id. 121 * 122 * @return array 123 * An array of field type definitions. 124 * 125 * @see \Drupal\Core\Field\FieldTypePluginManagerInterface::getUiDefinitions() 126 * @see hook_field_info_ui_definitions_alter() 127 */ 128 public function getUiDefinitionsForEntityType(string $entity_type_id); changed this line in version 9 of the diff
I think this is okay.
We will break ECK's tests - https://git.drupalcode.org/search?group_id=2&repository_ref=&scope=blobs&search=implements.*FieldTypePluginManagerInterface+-path%3Acore%2Flib%2FDrupal%2FCore%2FField%2FFieldTypePluginManager.php but it is easy for them to be 10.2.x and previous release compatible here.
added 1 commit
- 01ba200d - Change alter hook name to explicitly mention entity types
added 1 commit
- 20d659bb - Change comment_field_info_ui_definitions_alter to use the new alter
Please register or sign in to reply