diff --git a/core/modules/media/media.permissions.yml b/core/modules/media/media.permissions.yml index f0d41a3bf5..530365e1f4 100644 --- a/core/modules/media/media.permissions.yml +++ b/core/modules/media/media.permissions.yml @@ -20,7 +20,6 @@ delete media: delete any media: title: 'Delete any media' - restrict access: TRUE create media: title: 'Create media' diff --git a/core/modules/media/src/Plugin/Action/DeleteMedia.php b/core/modules/media/src/Plugin/Action/DeleteMedia.php index 8d364fec9d..dc06f21289 100644 --- a/core/modules/media/src/Plugin/Action/DeleteMedia.php +++ b/core/modules/media/src/Plugin/Action/DeleteMedia.php @@ -21,7 +21,7 @@ class DeleteMedia extends ActionBase implements ContainerFactoryPluginInterface { /** - * The tempstore object. + * The temp store factory. * * @var \Drupal\user\PrivateTempStoreFactory */ @@ -44,7 +44,7 @@ class DeleteMedia extends ActionBase implements ContainerFactoryPluginInterface * @param mixed $plugin_definition * The plugin implementation definition. * @param \Drupal\user\PrivateTempStoreFactory $temp_store_factory - * The tempstore factory. + * The temp store factory. * @param \Drupal\Core\Session\AccountInterface $current_user * Current user. */ diff --git a/core/modules/media/tests/src/Kernel/MediaSourceTest.php b/core/modules/media/tests/src/Kernel/MediaSourceTest.php index 0f07ab2646..60065bf26a 100644 --- a/core/modules/media/tests/src/Kernel/MediaSourceTest.php +++ b/core/modules/media/tests/src/Kernel/MediaSourceTest.php @@ -377,14 +377,14 @@ public function testSourceFieldCreation() { // Test field. $this->assertTrue($field->isNew(), 'Field is saved automatically.'); $this->assertEquals('field_media_test_1', $field->getName(), 'Incorrect field name is used.'); - $this->assertEquals('string', $field->getType(), 'Field is of inccorrect type.'); + $this->assertEquals('string', $field->getType(), 'Field is of incorrect type.'); $this->assertTrue($field->isRequired(), 'Field is not required.'); $this->assertEquals('Test source', $field->label(), 'Incorrect label is used.'); $this->assertEquals('test_type', $field->getTargetBundle(), 'Field is not targeting correct bundle.'); // Fields should be automatically saved only when creating the media type // using the media type creation form. Make sure that they are not saved - // when creating a media type programatically. + // when creating a media type programmatically. // Drupal\Tests\media\FunctionalJavascript\MediaTypeCreationTest is testing // form part of the functionality. $type->save();