Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
|
|
@ -222,7 +222,7 @@ abstract class ListItemBase extends FieldItemBase implements OptionsProviderInte
|
|||
* @return string
|
||||
* The error message if the specified value is invalid, NULL otherwise.
|
||||
*/
|
||||
protected static function validateAllowedValue($option) { }
|
||||
protected static function validateAllowedValue($option) {}
|
||||
|
||||
/**
|
||||
* Generates a string representation of an array of 'allowed values'.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace Drupal\options\Plugin\Field\FieldType;
|
||||
|
||||
use Drupal\Component\Utility\Unicode;
|
||||
use Drupal\Core\Field\FieldStorageDefinitionInterface;
|
||||
use Drupal\Core\TypedData\DataDefinition;
|
||||
|
||||
|
|
@ -65,7 +64,7 @@ class ListStringItem extends ListItemBase {
|
|||
* {@inheritdoc}
|
||||
*/
|
||||
protected static function validateAllowedValue($option) {
|
||||
if (Unicode::strlen($option) > 255) {
|
||||
if (mb_strlen($option) > 255) {
|
||||
return t('Allowed values list: each key must be a string at most 255 characters long.');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\options\Plugin\migrate\field\d7;
|
||||
|
||||
use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
|
||||
|
||||
/**
|
||||
* @MigrateField(
|
||||
* id = "optionwidgets",
|
||||
* core = {6},
|
||||
* source_module = "optionwidgets",
|
||||
* destination_module = "options"
|
||||
* )
|
||||
*/
|
||||
class OptionWidgetsField extends FieldPluginBase {}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\options\Plugin\migrate\field\d7;
|
||||
|
||||
use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
|
||||
|
||||
/**
|
||||
* @MigrateField(
|
||||
* id = "list",
|
||||
* type_map = {
|
||||
* "list_boolean" = "boolean",
|
||||
* "list_integer" = "list_integer",
|
||||
* "list_text" = "list_string",
|
||||
* "list_float" = "list_float",
|
||||
* },
|
||||
* core = {7},
|
||||
* source_module = "list",
|
||||
* destination_module = "options"
|
||||
* )
|
||||
*/
|
||||
class ListField extends FieldPluginBase {}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\options\Plugin\migrate\field\d7;
|
||||
|
||||
use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
|
||||
|
||||
/**
|
||||
* @MigrateField(
|
||||
* id = "options",
|
||||
* core = {7},
|
||||
* source_module = "options",
|
||||
* destination_module = "options"
|
||||
* )
|
||||
*/
|
||||
class OptionsField extends FieldPluginBase {}
|
||||
Reference in a new issue