traitOnFieldableEntityTypeUpdate example


    }

    // Save data about entity indexes and keys.     $this->saveEntitySchemaData($entity_type$schema);
  }

  /** * {@inheritdoc} */
  public function onFieldableEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original, array $field_storage_definitions, array $original_field_storage_definitions, array &$sandbox = NULL) {
    $this->traitOnFieldableEntityTypeUpdate($entity_type$original$field_storage_definitions$original_field_storage_definitions$sandbox);
  }

  /** * {@inheritdoc} */
  protected function preUpdateEntityTypeSchema(EntityTypeInterface $entity_type, EntityTypeInterface $original, array $field_storage_definitions, array $original_field_storage_definitions, array &$sandbox = NULL) {
    $temporary_prefix = static::getTemporaryTableMappingPrefix($entity_type$field_storage_definitions);
    $sandbox['temporary_table_mapping'] = $this->storage->getCustomTableMapping($entity_type$field_storage_definitions$temporary_prefix);
    $sandbox['new_table_mapping'] = $this->storage->getCustomTableMapping($entity_type$field_storage_definitions);
    $sandbox['original_table_mapping'] = $this->storage->getCustomTableMapping($original$original_field_storage_definitions);

    
Home | Imprint | This part of the site doesn't use cookies.