function MenuLinkInterface::getFormClass
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/MenuLinkInterface.php \Drupal\Core\Menu\MenuLinkInterface::getFormClass()
- 8.9.x core/lib/Drupal/Core/Menu/MenuLinkInterface.php \Drupal\Core\Menu\MenuLinkInterface::getFormClass()
- 11.x core/lib/Drupal/Core/Menu/MenuLinkInterface.php \Drupal\Core\Menu\MenuLinkInterface::getFormClass()
Returns the name of a class that can build an editing form for this link.
To instantiate the form class, use an instance of the \Drupal\Core\DependencyInjection\ClassResolverInterface, such as from the class_resolver service. Then call the setMenuLinkInstance() method on the form instance with the menu link plugin instance.
@todo Add a code example. https://www.drupal.org/node/2302849
Return value
string A class that implements \Drupal\Core\Menu\Form\MenuLinkFormInterface.
1 method overrides MenuLinkInterface::getFormClass()
- MenuLinkBase::getFormClass in core/
lib/ Drupal/ Core/ Menu/ MenuLinkBase.php
File
-
core/
lib/ Drupal/ Core/ Menu/ MenuLinkInterface.php, line 199
Class
- MenuLinkInterface
- Defines an interface for classes providing a type of menu link.
Namespace
Drupal\Core\MenuCode
public function getFormClass();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.