Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
d97f60e3
Commit
d97f60e3
authored
10 years ago
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2346371
by effulgentsia: Add docs warning to some APIs we know we'll break after beta.
parent
8a150288
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/lib/Drupal/Core/Entity/ContentEntityInterface.php
+3
-0
3 additions, 0 deletions
core/lib/Drupal/Core/Entity/ContentEntityInterface.php
core/modules/system/entity.api.php
+9
-0
9 additions, 0 deletions
core/modules/system/entity.api.php
with
12 additions
and
0 deletions
core/lib/Drupal/Core/Entity/ContentEntityInterface.php
+
3
−
0
View file @
d97f60e3
...
...
@@ -105,6 +105,9 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type);
*
* @see \Drupal\Core\Entity\EntityManagerInterface::getFieldDefinitions()
* @see \Drupal\Core\Entity\ContentEntityInterface::baseFieldDefinitions()
*
* @todo WARNING: This method will be changed in
* https://www.drupal.org/node/2346347.
*/
public
static
function
bundleFieldDefinitions
(
EntityTypeInterface
$entity_type
,
$bundle
,
array
$base_field_definitions
);
...
...
This diff is collapsed.
Click to expand it.
core/modules/system/entity.api.php
+
9
−
0
View file @
d97f60e3
...
...
@@ -1658,6 +1658,9 @@ function hook_entity_base_field_info(\Drupal\Core\Entity\EntityTypeInterface $en
* @see hook_entity_base_field_info()
* @see hook_entity_bundle_field_info()
* @see hook_entity_bundle_field_info_alter()
*
* @todo WARNING: This hook will be changed in
* https://www.drupal.org/node/2346329.
*/
function
hook_entity_base_field_info_alter
(
&
$fields
,
\Drupal\Core\Entity\EntityTypeInterface
$entity_type
)
{
// Alter the mymodule_text field to use a custom class.
...
...
@@ -1690,6 +1693,9 @@ function hook_entity_base_field_info_alter(&$fields, \Drupal\Core\Entity\EntityT
* @see hook_entity_bundle_field_info_alter()
* @see \Drupal\Core\Field\FieldDefinitionInterface
* @see \Drupal\Core\Entity\EntityManagerInterface::getFieldDefinitions()
*
* @todo WARNING: This hook will be changed in
* https://www.drupal.org/node/2346347.
*/
function
hook_entity_bundle_field_info
(
\Drupal\Core\Entity\EntityTypeInterface
$entity_type
,
$bundle
,
array
$base_field_definitions
)
{
// Add a property only to nodes of the 'article' bundle.
...
...
@@ -1716,6 +1722,9 @@ function hook_entity_bundle_field_info(\Drupal\Core\Entity\EntityTypeInterface $
* @see hook_entity_base_field_info()
* @see hook_entity_base_field_info_alter()
* @see hook_entity_bundle_field_info()
*
* @todo WARNING: This hook will be changed in
* https://www.drupal.org/node/2346347.
*/
function
hook_entity_bundle_field_info_alter
(
&
$fields
,
\Drupal\Core\Entity\EntityTypeInterface
$entity_type
,
$bundle
)
{
if
(
$entity_type
->
id
()
==
'node'
&&
$bundle
==
'article'
&&
!
empty
(
$fields
[
'mymodule_text'
]))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment