_doCreateFromStorageRecord example

/** * {@inheritdoc} */
  protected function getQueryServiceName() {
    return 'entity.query.config';
  }

  /** * {@inheritdoc} */
  public function importCreate($name, Config $new_config, Config $old_config) {
    $entity = $this->_doCreateFromStorageRecord($new_config->get(), TRUE);
    $entity->save();
    return TRUE;
  }

  /** * {@inheritdoc} */
  public function importUpdate($name, Config $new_config, Config $old_config) {
    $id = static::getIDFromConfigName($name$this->entityType->getConfigPrefix());
    $entity = $this->load($id);
    if (!$entity) {
      
Home | Imprint | This part of the site doesn't use cookies.