Jake Vanderwerf
2026-08-26 ccf5e61a075c35d24befc175994b5cb8957ca322
inc/managers/SEO/render/Traits/ThingSchema.php
@@ -31,11 +31,12 @@
      nameTrait, ownerTrait, potentialActionTrait, sameAsTrait, subjectOfTrait, urlTrait;
   protected string $id;
   protected bool $showID = true;
   protected array $ignore = [
      'mappedMethods',
      'ignore',
      'id'
      'id',
      'showID',
   ];
   public function outputSchema():array
   {
@@ -76,9 +77,10 @@
         }, ARRAY_FILTER_USE_KEY)
      );
      return  array_merge([
      $id = $this->showID ? ['@id' => $id] : [];
      return  array_merge($id, [
         '@type'  => $this->getTypeName(),
         '@id' => $id,
      ], array_filter($elements));
   }
@@ -133,7 +135,7 @@
   public static function createImageFromID(int $ID):ImageObject|false
   {
      $cache = Cache::for('schemaImage')->connect('post');
      $cache = Cache::for('schemaImage', 'post');
      return $cache->remember(
         $ID,
         function() use($ID) {
@@ -161,4 +163,10 @@
      );
   }
   public function showID(bool $showIt = true):void
   {
      $this->showID = $showIt;
   }
}