protected MatcherDumper::schemaDefinition()
Defines the schema for the router table.
Return value
array The schema API definition for the SQL storage table.
File
- core/lib/Drupal/Core/Routing/MatcherDumper.php, line 198
Class
- MatcherDumper
- Dumps Route information to a database table.
Namespace
Drupal\Core\Routing
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | protected function schemaDefinition() { $schema = [ 'description' => 'Maps paths to various callbacks (access, page and title)' , 'fields' => [ 'name' => [ 'description' => 'Primary Key: Machine name of this route' , 'type' => 'varchar_ascii' , 'length' => 255, 'not null' => TRUE, 'default' => '' , ], 'path' => [ 'description' => 'The path for this URI' , 'type' => 'varchar' , 'length' => 255, 'not null' => TRUE, 'default' => '' , ], 'pattern_outline' => [ 'description' => 'The pattern' , 'type' => 'varchar' , 'length' => 255, 'not null' => TRUE, 'default' => '' , ], 'fit' => [ 'description' => 'A numeric representation of how specific the path is.' , 'type' => 'int' , 'not null' => TRUE, 'default' => 0, ], 'route' => [ 'description' => 'A serialized Route object' , 'type' => 'blob' , 'size' => 'big' , ], 'number_parts' => [ 'description' => 'Number of parts in this router path.' , 'type' => 'int' , 'not null' => TRUE, 'default' => 0, 'size' => 'small' , ], ], 'indexes' => [ 'pattern_outline_parts' => [ 'pattern_outline' , 'number_parts' ], ], 'primary key' => [ 'name' ], ]; return $schema ; } |
Please login to continue.