public function validate() { if (!
$this->validated
) { $this->errors =
[];
// Create the list of installs and uninstalls.
$this->
createExtensionChangelist();
// Validate renames.
foreach ($this->
getUnprocessedConfiguration('rename'
) as $name) { $names =
$this->storageComparer->
extractRenameNames($name);
$old_entity_type_id =
$this->configManager->
getEntityTypeIdByName($names['old_name'
]);
$new_entity_type_id =
$this->configManager->
getEntityTypeIdByName($names['new_name'
]);
if ($old_entity_type_id !=
$new_entity_type_id) { $this->
logError($this->
t('Entity type mismatch on rename. @old_type not equal to @new_type for existing configuration @old_name and staged configuration @new_name.',
['@old_type' =>
$old_entity_type_id, '@new_type' =>
$new_entity_type_id, '@old_name' =>
$names['old_name'
], '@new_name' =>
$names['new_name'
]]));
} // Has to be a configuration entity.
if (!
$old_entity_type_id) { $this->
logError($this->
t('Rename operation for simple configuration. Existing configuration @old_name and staged configuration @new_name.',
['@old_name' =>
$names['old_name'
], '@new_name' =>
$names['new_name'
]]));
}