Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294789

FieldDefinitionInterface should implement CacheableDependencyInterface

$
0
0

Problem/Motivation

All FieldDefinitionInterface implementations are config entities and therefore automatically implement CacheableDependencyInterface.

The sole exception is BaseFieldDefinition.

But even that field definition is perfectly cacheable: it even is unchanging, since it's defined in code.

With that small addition, all field (storage) definitions would implement CacheableDependencyInterface

Proposed resolution

Let FieldDefinitionInterface implement CacheableDependencyInterface.

Remaining tasks

TBD

User interface changes

None.

API changes

FieldDefinitionInterface now implements CacheableDependencyInterface


Viewing all articles
Browse latest Browse all 294789

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>