PortableInfobox/services/Sanitizers/NodeHeroImageSanitizer.php

16 lines
309 B
PHP
Raw Normal View History

2015-12-23 14:54:03 +00:00
<?php
class NodeHeroImageSanitizer extends NodeSanitizer {
2015-12-23 14:54:03 +00:00
/**
* @param $data
* @return mixed
*/
public function sanitize( $data ) {
if ( !empty( $data[ 'title' ][ 'value' ] ) ) {
$data[ 'title' ][ 'value' ] = $this->sanitizeElementData( $data[ 'title' ][ 'value' ] );
}
return $data;
}
}