Skip to content
Snippets Groups Projects

Ensure the repository cache is correct

2 files
+ 13
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -66,6 +66,8 @@ class CrossBundleResourceTypeRepository implements ResourceTypeRepositoryInterfa
@@ -66,6 +66,8 @@ class CrossBundleResourceTypeRepository implements ResourceTypeRepositoryInterfa
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public function getByTypeName($type_name) {
public function getByTypeName($type_name) {
 
// Ensure this repository code has a cache to set the cache key.
 
$this->all();
return $this->inner->getByTypeName($type_name);
return $this->inner->getByTypeName($type_name);
}
}
@@ -73,6 +75,8 @@ class CrossBundleResourceTypeRepository implements ResourceTypeRepositoryInterfa
@@ -73,6 +75,8 @@ class CrossBundleResourceTypeRepository implements ResourceTypeRepositoryInterfa
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public function get($entity_type_id, $bundle) {
public function get($entity_type_id, $bundle) {
 
// Ensure this repository code has a cache to set the cache key.
 
$this->all();
return $this->inner->get($entity_type_id, $bundle);
return $this->inner->get($entity_type_id, $bundle);
}
}
Loading