addChangelistRename example


  public function createChangelist() {
    foreach ($this->getAllCollectionNames() as $collection) {
      $this->changelist[$collection] = $this->getEmptyChangelist();
      $this->getAndSortConfigData($collection);
      $this->addChangelistCreate($collection);
      $this->addChangelistUpdate($collection);
      $this->addChangelistDelete($collection);
      // Only collections that support configuration entities can have renames.       if ($collection == StorageInterface::DEFAULT_COLLECTION) {
        $this->addChangelistRename($collection);
      }
    }
    return $this;
  }

  /** * Creates the delete changelist. * * The list of deletes is sorted so that dependencies are deleted after * configuration entities that depend on them. For example, fields should be * deleted after field storages. * * @param string $collection * The storage collection to operate on. */
Home | Imprint | This part of the site doesn't use cookies.