Source of file StaticallyPublishable.php
Size: 0,810 Bytes - Last Modified: 2021-12-23T10:34:48+00:00
/var/www/docs.ssmods.com/process/src/src/Contract/StaticallyPublishable.php
123456789101112131415161718192021222324252627 | <?php /** * Interface for statically publishable objects. It does not define how change is * triggered, just that the implementing class has a family of URLs that it needs * to maintain (urlsToCache). * * It is expected that a full cache can be rebuilt by finding all objects that * implement this interface, and calling urlsToCache on these. This implies that * any URL should belong to just one object. */ namespace SilverStripe\StaticPublishQueue\Contract; interface StaticallyPublishable { /** * Get a list of URLs that this object wishes to maintain. URLs should not * overlap with other objects. * * Note: include the URL of the object itself! * * @return array associative array of URL (string) => Priority (int) */ public function urlsToCache(); } |