getEntitySchemaData example



    return $this->storage->getCustomTableMapping($entity_type$field_storage_definitions);
  }

  /** * {@inheritdoc} */
  public function requiresEntityStorageSchemaChanges(EntityTypeInterface $entity_type, EntityTypeInterface $original) {
    return $this->hasSharedTableStructureChange($entity_type$original) ||
      // Detect changes in key or index definitions.       $this->getEntitySchemaData($entity_type$this->getEntitySchema($entity_type, TRUE)) != $this->loadEntitySchemaData($original);
  }

  /** * Detects whether there is a change in the shared table structure. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The new entity type. * @param \Drupal\Core\Entity\EntityTypeInterface $original * The origin entity type. * * @return bool * Returns TRUE if either the revisionable or translatable flag changes or * a table has been renamed. */
Home | Imprint | This part of the site doesn't use cookies.