updated core
This commit is contained in:
@@ -16,8 +16,16 @@ content:
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
type: file_default
|
||||
weight: 1
|
||||
region: content
|
||||
name:
|
||||
label: hidden
|
||||
type: string
|
||||
weight: 0
|
||||
region: content
|
||||
settings:
|
||||
link_to_entity: false
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
created: true
|
||||
thumbnail: true
|
||||
|
||||
@@ -19,8 +19,16 @@ content:
|
||||
image_link: file
|
||||
third_party_settings: { }
|
||||
type: image
|
||||
weight: 1
|
||||
region: content
|
||||
name:
|
||||
label: hidden
|
||||
type: string
|
||||
weight: 0
|
||||
region: content
|
||||
settings:
|
||||
link_to_entity: false
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
created: true
|
||||
thumbnail: true
|
||||
|
||||
@@ -10,8 +10,8 @@ dependencies:
|
||||
- image
|
||||
- user
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-11-03
|
||||
version: '8.4.2'
|
||||
# Information added by Drupal.org packaging script on 2018-01-03
|
||||
version: '8.4.4'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1509719929
|
||||
datestamp: 1515021228
|
||||
|
||||
@@ -404,6 +404,7 @@ class Media extends EditorialContentEntityBase implements MediaInterface {
|
||||
'weight' => -5,
|
||||
])
|
||||
->setDisplayConfigurable('form', TRUE)
|
||||
->setDisplayConfigurable('view', TRUE)
|
||||
->setDisplayOptions('view', [
|
||||
'label' => 'hidden',
|
||||
'type' => 'string',
|
||||
|
||||
@@ -5,8 +5,8 @@ description: 'Provides test media source to test configuration forms.'
|
||||
package: Testing
|
||||
# version: VERSION
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-11-03
|
||||
version: '8.4.2'
|
||||
# Information added by Drupal.org packaging script on 2018-01-03
|
||||
version: '8.4.4'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1509719929
|
||||
datestamp: 1515021228
|
||||
|
||||
@@ -7,8 +7,8 @@ package: Testing
|
||||
dependencies:
|
||||
- media_test_source
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-11-03
|
||||
version: '8.4.2'
|
||||
# Information added by Drupal.org packaging script on 2018-01-03
|
||||
version: '8.4.4'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1509719929
|
||||
datestamp: 1515021228
|
||||
|
||||
@@ -8,8 +8,8 @@ dependencies:
|
||||
- media
|
||||
- views
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-11-03
|
||||
version: '8.4.2'
|
||||
# Information added by Drupal.org packaging script on 2018-01-03
|
||||
version: '8.4.4'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1509719929
|
||||
datestamp: 1515021228
|
||||
|
||||
@@ -20,4 +20,15 @@ class MediaTest extends MediaKernelTestBase {
|
||||
$this->assertSame($media, $media->setOwnerId($this->user->id()), 'setOwnerId() method returns its own entity.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensure media name is configurable on manage display.
|
||||
*/
|
||||
public function testNameIsConfigurable() {
|
||||
/** @var \Drupal\Core\Field\BaseFieldDefinition[] $field_definitions */
|
||||
$field_definitions = $this->container->get('entity_field.manager')
|
||||
->getBaseFieldDefinitions('media');
|
||||
|
||||
$this->assertTrue($field_definitions['name']->isDisplayConfigurable('view'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user