public function SimpleMegaMenuHelper::getSimpleMegaMenuType in Simple Mega Menu 8
Same name and namespace in other branches
- 2.0.x src/SimpleMegaMenuHelper.php \Drupal\simple_megamenu\SimpleMegaMenuHelper::getSimpleMegaMenuType()
Get a SimpleMegaMenuType entity.
Parameters
string $id: The SimpleMegaMenuType id.
Return value
\Drupal\simple_megamenu\Entity\SimpleMegaMenuTypeInterface The SimpleMegaMenuTypeInterface entity.
Overrides SimpleMegaMenuHelperInterface::getSimpleMegaMenuType
File
- src/
SimpleMegaMenuHelper.php, line 73
Class
- SimpleMegaMenuHelper
- Class SimpleMegaMenuHelper.
Namespace
Drupal\simple_megamenuCode
public function getSimpleMegaMenuType($id) {
$simpleMegaMenuType = $this->entityTypeManager
->getStorage('simple_mega_menu_type')
->load($id);
return $simpleMegaMenuType;
}