Pathologic was missing because of a .git folder inside.
[yaffs-website] / web / modules / contrib / fontyourface / src / FontStorageSchema.php
1 <?php
2
3 namespace Drupal\fontyourface;
4
5 use Drupal\Core\Entity\ContentEntityTypeInterface;
6 use Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema;
7
8 /**
9  * Defines the font schema handler.
10  */
11 class FontStorageSchema extends SqlContentEntityStorageSchema {
12
13   /**
14    * {@inheritdoc}
15    */
16   protected function getEntitySchema(ContentEntityTypeInterface $entity_type, $reset = FALSE) {
17     $schema = parent::getEntitySchema($entity_type, $reset);
18
19     $schema['fontyourface_font']['indexes'] += [
20       'name' => ['name'],
21       'pid' => ['pid'],
22     ];
23     $schema['fontyourface_font']['unique keys'] += [
24       'url' => ['url'],
25     ];
26
27     return $schema;
28   }
29
30 }