public function Entity::get in Schema 8
Parameters
bool $rebuild: Whether to force a rebuild of schema data.
Return value
array Array of schema information, keyed by table.
Overrides SchemaProviderInterface::get
File
- src/
Plugin/ Schema/ Entity.php, line 34 - Contains Drupal\schema\Plugin\Schema\Entity.
Class
- Entity
- Provides schema information related to entities and fields.
Namespace
Drupal\schema\Plugin\SchemaCode
public function get($rebuild = FALSE) {
$complete_schema = array();
$entity_types = $this->entityManager
->getDefinitions();
foreach ($entity_types as $entity_type) {
$complete_schema += $this
->getTypeSchema($entity_type, $rebuild);
}
return $complete_schema;
}