public MenuTreeStorageInterface::save(array $definition)
Saves a plugin definition to the storage.
array $definition: A definition for a \Drupal\Core\Menu\MenuLinkInterface plugin.
array The menu names affected by the save operation. This will be one menu name if the link is saved to the sane menu, or two if it is saved to a new menu.
\Exception Thrown if the storage back-end does not exist and could not be created.
\Drupal\Component\Plugin\Exception\PluginException Thrown if the definition is invalid - for example, if the specified parent would cause the links children to be moved to greater than the maximum depth.
public function save(array $definition);
© 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!MenuTreeStorageInterface.php/function/MenuTreeStorageInterface::save/8.1.x