Update to Drupal 8.0.0-rc3. For more information, see https://www.drupal.org/node/2608078
This commit is contained in:
parent
6419a031d7
commit
4afb23bbd3
762 changed files with 20080 additions and 6368 deletions
|
@ -71,7 +71,9 @@ abstract class ListItemBase extends FieldItemBase implements OptionsProviderInte
|
|||
* {@inheritdoc}
|
||||
*/
|
||||
public static function generateSampleValue(FieldDefinitionInterface $field_definition) {
|
||||
// @todo Implement this once https://www.drupal.org/node/2238085 lands.
|
||||
$allowed_options = options_allowed_values($field_definition->getFieldStorageDefinition());
|
||||
$values['value'] = array_rand($allowed_options);
|
||||
return $values;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -80,6 +80,7 @@ class OptionsFieldTest extends OptionsFieldUnitTestBase {
|
|||
'field_name' => $this->fieldName,
|
||||
'entity_type' => 'entity_test',
|
||||
'bundle' => 'entity_test',
|
||||
'required' => TRUE,
|
||||
))->save();
|
||||
entity_get_form_display('entity_test', 'entity_test', 'default')
|
||||
->setComponent($this->fieldName, array(
|
||||
|
|
Reference in a new issue