PortableInfobox/services/Sanitizers/NodeHeroImageSanitizer.php
2015-12-29 08:13:02 +01:00

16 lines
309 B
PHP

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