' to ''. * * @MigrateProcessPlugin( * id = "filter_settings", * handle_multiples = TRUE * ) */ class FilterSettings extends ProcessPluginBase { /** * Default attributes for migrating filter_html's 'allowed_html' setting. * * @var string[] */ protected $allowedHtmlDefaultAttributes = [ '' => '', '
' => '
', '
    ' => '
      ', '
        ' => '
          ', '' => '', '

          ' => '

          ', '

          ' => '

          ', '

          ' => '

          ', '

          ' => '
          ', '
          ' => '
          ', ]; /** * {@inheritdoc} */ public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) { // Only the filter_html filter's settings have a changed format. if ($row->getDestinationProperty('id') === 'filter_html') { if (!empty($value['allowed_html'])) { $value['allowed_html'] = str_replace(array_keys($this->allowedHtmlDefaultAttributes), array_values($this->allowedHtmlDefaultAttributes), $value['allowed_html']); } } return $value; } }