diff --git a/src/Controller/ManageMembersController.php b/src/Controller/ManageMembersController.php index 5b298916..9197811b 100644 --- a/src/Controller/ManageMembersController.php +++ b/src/Controller/ManageMembersController.php @@ -130,7 +130,7 @@ class ManageMembersController extends EntityController { } // Build the message shown when there are no bundles. - $type_label = $type_definition->getLowercaseLabel(); + $type_label = $type_definition->getSingularLabel(); $link_text = $this->t('Add a new @entity_type.', ['@entity_type' => $type_label]); $build['#add_bundle_message'] = $this->t('There is no @entity_type yet. @add_link', [ '@entity_type' => $type_label, diff --git a/src/Flysystem/Adapter/FedoraAdapter.php b/src/Flysystem/Adapter/FedoraAdapter.php index 0cc95044..737d7152 100644 --- a/src/Flysystem/Adapter/FedoraAdapter.php +++ b/src/Flysystem/Adapter/FedoraAdapter.php @@ -8,6 +8,7 @@ use League\Flysystem\Adapter\Polyfill\NotSupportingVisibilityTrait; use League\Flysystem\Adapter\Polyfill\StreamedCopyTrait; use League\Flysystem\Config; use GuzzleHttp\Psr7; +use GuzzleHttp\Psr7\Header; use GuzzleHttp\Psr7\Response; use GuzzleHttp\Psr7\StreamWrapper; use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface; @@ -144,7 +145,7 @@ class FedoraAdapter implements AdapterInterface { // NonRDFSource's are considered files. Everything else is a // directory. $type = 'dir'; - $links = Psr7\parse_header($response->getHeader('Link')); + $links = Header::parse($response->getHeader('Link')); foreach ($links as $link) { if ($link['rel'] == 'type' && $link[0] == '') { $type = 'file';