src/Controller/Component/FlashComponent.php
protected function _transformCrudOptions(array $options) {
		if (isset($options['params']['class']) && !isset($options['type'])) {
			$class = $options['params']['class'];
			$pos = strrpos($class, ' ');
			if ($pos !== false) {
				$class = substr($class, $pos + 1);
			}
			$options['type'] = $class;
			$options['element'] = $class;
			unset($options['params']['class']);
			unset($options['params']['original']);
		}

		return $options;
	}
protected function _transformCrudOptions(array $options) {
		if (isset($options['params']['class']) && !isset($options['type'])) {
			$class = $options['params']['class'];
			$pos = strrpos($class, ' ');
			if ($pos !== false) {
				$class = substr($class, $pos + 1);
			}
			$options['type'] = $class;
			$options['element'] = $class;
			unset($options['params']['class']);
			unset($options['params']['original']);
		}

		return $options;
	}
protected function _transformCrudOptions ( array $ options ) { if ( isset ( $ options [ 'params' ] [ 'class' ] ) && ! isset ( $ options [ 'type' ] ) ) { $ class = $ options [ 'params' ] [ 'class' ] ; $ pos = strrpos ( $ class , ' ' ) ; if ( $ pos !== false ) { $ class = substr ( $ class , $ pos + 1 ) ; } $ options [ 'type' ] = $ class ; $ options [ 'element' ] = $ class ; unset ( $ options [ 'params' ] [ 'class' ] ) ; unset ( $ options [ 'params' ] [ 'original' ] ) ; } return $ options ; }
Transforms Crud plugin flashs into Flash messages.

@param array $options

@return array
Transforms Crud plugin flashs into Flash messages .