->getStorage('field_storage_config')
->loadByProperties(['type' => 'metatag']);
- foreach ($field_storage_configs as $key => $field_storage) {
+ foreach ($field_storage_configs as $field_storage) {
$field_name = $field_storage->getName();
// Get the individual fields (field instances) associated with bundles.
// Get the default value for this field on this bundle.
$field_default_tags_value = $field->getDefaultValueLiteral();
$field_default_tags_value = $field_default_tags_value[0]['value'];
- $field_default_tags = unserialize($field_default_tags_value);
// Determine the table and "value" field names.
$field_table = "node__" . $field_name;
->getStorage('field_storage_config')
->loadByProperties(['type' => 'metatag']);
- foreach ($field_storage_configs as $key => $field_storage) {
+ foreach ($field_storage_configs as $field_storage) {
$field_name = $field_storage->getName();
// Get the individual fields (field instances) associated with bundles.
->getStorage('field_storage_config')
->loadByProperties(['type' => 'metatag']);
- foreach ($field_storage_configs as $key => $field_storage) {
+ foreach ($field_storage_configs as $field_storage) {
$field_name = $field_storage->getName();
// Get the individual fields (field instances) associated with bundles.