* @since 4.2.0 */ class InvalidateElementCachesEvent extends Event { /** * @var array An array of TagDependency tag names that are being invalidated */ public array $tags; /** * @var ElementInterface|null The element whose caches are being invalidated, if this was triggered from * [[\craft\services\Elements::invalidateCachesForElement()]]. * @since 5.2.0 */ public ?ElementInterface $element = null; }