protected static function TypogrifyFilter::settingsUnserialize in Typogrify 8
Unserialize array values.
Unserialize $settings[$key] for each $key in $arraySettingsKeys.
Parameters
array &$settings: The array of plugin settings.
See also
settingsSerialize()
3 calls to TypogrifyFilter::settingsUnserialize()
- TypogrifyFilter::process in src/
Plugin/ Filter/ TypogrifyFilter.php - Performs the filter processing.
- TypogrifyFilter::settingsForm in src/
Plugin/ Filter/ TypogrifyFilter.php - Generates a filter's settings form.
- TypogrifyFilter::tips in src/
Plugin/ Filter/ TypogrifyFilter.php - Generates a filter's tip.
File
- src/
Plugin/ Filter/ TypogrifyFilter.php, line 94
Class
- TypogrifyFilter
- Provides a filter to restrict images to site.
Namespace
Drupal\typogrify\Plugin\FilterCode
protected static function settingsUnserialize(array &$settings) {
foreach (static::$arraySettingsKeys as $key) {
if (isset($settings[$key]) && is_string($settings[$key])) {
$settings[$key] = unserialize($settings[$key]);
}
}
}