protected static StaticMenuLinkOverrides::encodeId($id)
Encodes the ID by replacing dots with double underscores.
This is done because config schema uses dots for its internal type hierarchy. Double underscores are converted to triple underscores to avoid accidental conflicts.
string $id: The menu plugin ID.
string The menu plugin ID with double underscore instead of dots.
protected static function encodeId($id) { return strtr($id, array('.' => '__', '__' => '___')); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!StaticMenuLinkOverrides.php/function/StaticMenuLinkOverrides::encodeId/8.1.x