/** * Returns an array containing the parameter info. * @see ParserHook::getParameterInfo * * @since 3.0 * * @return array */ protected function getParameterInfo($type) { $params = array(); $params['type'] = array('default' => false, 'manipulatedefault' => false, 'message' => 'maps-displaymap-par-coordinates'); $params['name'] = array('default' => false, 'manipulatedefault' => false, 'message' => 'maps-displaymap-par-coordinates'); $params['definition'] = array('default' => false, 'manipulatedefault' => false, 'message' => 'maps-displaymap-par-coordinates', 'post-format' => function ($value) { return MapsLayers::parseLayerParameters($value, "\n", '='); }); return $params; }
/** * @see ItemParameterManipulation::doManipulation * * @since 3.0 */ public function doManipulation(&$value, Parameter $parameter, array &$parameters) { // string to array describing layer parameters: $value = MapsLayers::parseLayerParameters($value, $this->itemSep, $this->keyValueSep); }