Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

Commit

Permalink
Remove path auto fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjy committed Feb 4, 2016
1 parent b6bd60d commit 03686d5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions file_entity.install
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ function file_entity_install() {
$type_storage_definition = $entity_field_manager->getFieldStorageDefinitions('file')['type'];
\Drupal::entityDefinitionUpdateManager()->installFieldStorageDefinition('type', 'file', 'file_entity', $type_storage_definition);

// If the pathauto module already exists, update the entity schema.
if (\Drupal::moduleHandler()->moduleExists('pathauto')) {
$path_storage_definition = $entity_field_manager->getFieldStorageDefinitions('file')['path'];
\Drupal::entityDefinitionUpdateManager()->installFieldStorageDefinition('path', 'file', 'file_entity', $path_storage_definition);
}

// Set permissions.
$roles = user_roles();
foreach ($roles as $rid => $role) {
Expand Down

0 comments on commit 03686d5

Please sign in to comment.