Loading src/Entity/Facet.php +6 −16 Original line number Diff line number Diff line Loading @@ -1096,24 +1096,14 @@ class Facet extends ConfigEntityBase implements FacetInterface { } /** * Set cache contexts. * * @param array $cacheContexts * The cache contexts. * * @return void * {@inheritdoc} */ public function setCacheContexts(array $cacheContexts): void { $this->cacheContexts = $cacheContexts; } /** * Set cache max age in seconds. * * @param int $cacheMaxAge * Max age in seconds. * * @return void * {@inheritdoc} */ public function setCacheMaxAge(int $cacheMaxAge): void { $this->cacheMaxAge = $cacheMaxAge; Loading src/FacetInterface.php +20 −0 Original line number Diff line number Diff line Loading @@ -504,4 +504,24 @@ interface FacetInterface extends ConfigEntityInterface { */ public function getMinCount(); /** * Set cache contexts. * * @param array $cacheContexts * The cache contexts. * * @return void */ public function setCacheContexts(array $cacheContexts): void; /** * Set cache max age in seconds. * * @param int $cacheMaxAge * Max age in seconds. * * @return void */ public function setCacheMaxAge(int $cacheMaxAge): void; } Loading
src/Entity/Facet.php +6 −16 Original line number Diff line number Diff line Loading @@ -1096,24 +1096,14 @@ class Facet extends ConfigEntityBase implements FacetInterface { } /** * Set cache contexts. * * @param array $cacheContexts * The cache contexts. * * @return void * {@inheritdoc} */ public function setCacheContexts(array $cacheContexts): void { $this->cacheContexts = $cacheContexts; } /** * Set cache max age in seconds. * * @param int $cacheMaxAge * Max age in seconds. * * @return void * {@inheritdoc} */ public function setCacheMaxAge(int $cacheMaxAge): void { $this->cacheMaxAge = $cacheMaxAge; Loading
src/FacetInterface.php +20 −0 Original line number Diff line number Diff line Loading @@ -504,4 +504,24 @@ interface FacetInterface extends ConfigEntityInterface { */ public function getMinCount(); /** * Set cache contexts. * * @param array $cacheContexts * The cache contexts. * * @return void */ public function setCacheContexts(array $cacheContexts): void; /** * Set cache max age in seconds. * * @param int $cacheMaxAge * Max age in seconds. * * @return void */ public function setCacheMaxAge(int $cacheMaxAge): void; }