Skip to content

Commit db025a4

Browse files
authored
docs: fix custom elements grammar: singular/plural (#100)
1 parent 758587d commit db025a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/4.drupal/20.custom-elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Besides slot, an element may contain any number of attributes, which are key val
5252

5353
### Cache Metadata
5454

55-
Custom elements integrate with Drupal's [cache API](https://www.drupal.org/docs/8/api/cache-api/cacheabledependencyinterface-friends), thus allows element to define their caching dependencies via cache tags and their cache context. It implements the `CacheableDependencyInterface`, so it's cache dependencies can be easily added as usual, for example entities:
55+
Custom elements integrate with Drupal's [cache API](https://www.drupal.org/docs/8/api/cache-api/cacheabledependencyinterface-friends), by allowing to define their caching dependencies via cache tags and their cache context. They implement the `CacheableDependencyInterface`, so their cache dependencies can be easily added as usual, for example entities:
5656

5757
```php
5858
$custom_element->addCacheableDependency($entity);

0 commit comments

Comments
 (0)